shell,vim: add git blame alias
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user