mirror of https://git.decapod.one/brethil/dotfiles
Compare commits
No commits in common. "2fb53e6f2bfb6e79c43b578b212fb3183cc6dbf6" and "9f566efa8e50595dc31885e9510c1ac6ad513035" have entirely different histories.
2fb53e6f2b
...
9f566efa8e
|
@ -75,7 +75,6 @@
|
|||
'pdbrc.py': '~/.pdbrc.py'
|
||||
# "ipython": "~/.ipython" # FIXME: ipython config is more complex
|
||||
'ansible/ansible.cfg': '~/.ansible.cfg'
|
||||
'gitignore': '~/.git/config/ignore'
|
||||
|
||||
- name: check undodir_migration
|
||||
stat: path=${HOME}/.vim_runtime/temp_dirs/undodir
|
||||
|
|
|
@ -15,11 +15,3 @@
|
|||
|
||||
- name: vim
|
||||
ansible.builtin.shell: DOTFILES={{DOTFILES}} vim -c 'PlugUpdate|qa!'
|
||||
|
||||
- name: check gitignore migration
|
||||
stat: path=${HOME}/.gitignore
|
||||
register: gitignore
|
||||
|
||||
- name: gitignore migration
|
||||
command: mkdir -p ${HOME}/.config/git && ln -s ${DOTFILES}/gitignore ${HOME}/.config/git/ignore && rm -f ~/.gitignore
|
||||
when: gitignore.stat.exists
|
||||
|
|
|
@ -39,11 +39,11 @@ compdef "__git_completion_wrapper __git_recent_branches" git-switch-recent-branc
|
|||
|
||||
# Runs git log with fzf with preview
|
||||
function fgitlog() {
|
||||
git showtool $(git log --oneline $@ | fzf --multi --preview 'git -p show --color=always {+1}' --preview-window=right,60% | awk '{print $1}')
|
||||
git log --oneline $@ | fzf --multi --preview 'git -p show --color=always {+1}' --preview-window=right,60%
|
||||
}
|
||||
compdef _git fgitlog=git-log
|
||||
|
||||
function git-commit-show() {
|
||||
git-commit-show() {
|
||||
git log --graph --color=always --format="%C(auto)%h%d %s %C(black)%C(bold)%cr" $@ |
|
||||
fzf --ansi --no-sort --reverse --tiebreak=index --preview \
|
||||
'f() {
|
||||
|
@ -59,18 +59,13 @@ function git-commit-show() {
|
|||
}
|
||||
compdef "__git_completion_wrapper __git_recent_commits" git-commit-show
|
||||
|
||||
function git-fixup() {
|
||||
git-fixup() {
|
||||
git commit --fixup=$1
|
||||
git -c sequence.editor=true rebase --interactive --autosquash $1^
|
||||
}
|
||||
compdef "__git_completion_wrapper __git_recent_commits" git-fixup
|
||||
|
||||
function git-diff-branch() {
|
||||
git-diff-branch() {
|
||||
git diff $@
|
||||
}
|
||||
compdef "__git_completion_wrapper __git_branch_names" git-diff-branch
|
||||
|
||||
|
||||
function git-show-changes(){
|
||||
git log --reverse HEAD^..
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ mkvenv(){
|
|||
return 1
|
||||
fi
|
||||
|
||||
echo -n "Creating venv..." && python -m virtualenv $@ .venv || echo -e "Failed to create virtualenv. Is virtualenv installed? Try:\n $ pip install virtualenv"
|
||||
echo -n "Creating venv..." && python -m venv $@ .venv
|
||||
if [[ -z ${source_venv} ]]; then
|
||||
echo -n " done. Enable? [Y/n]"
|
||||
read source_venv
|
||||
|
|
Loading…
Reference in New Issue