shell,vim: add git blame alias

This commit is contained in:
Marco Thomas
2024-03-05 18:37:03 +01:00
parent 8d452a51fd
commit 883734268e
2 changed files with 4 additions and 1 deletions

View File

@@ -10,6 +10,9 @@ alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -i'
### Git fun
alias gbl='git show $(git ls-files | fzf --reverse --bind "enter:become(git blame {1} | fzf --ansi --reverse | cut -f 1 -d \" \")")'
### Abbreviations
alias dcr='dc down && dc up -d && dc logs -f'
alias dh1='du . -h -d1'

View File

@@ -17,7 +17,6 @@ call plug#begin()
" essentials
Plug 'jiangmiao/auto-pairs' " pair completion
Plug 'mhinz/vim-signify' " show lines changed in git(1)
Plug 'tpope/vim-commentary' " DWIM comments
" file search
@@ -103,6 +102,7 @@ let &t_EI = "\<Esc>[2 q"
map <Leader>f :GFiles<CR>
map <Leader>F :Files<CR>
map <Leader>b :Buffers<CR>
command! -bang -nargs=* GGrep
\ call fzf#vim#grep(