bash: add git grep fzf script

This commit is contained in:
2024-04-29 09:40:14 +02:00
parent 79e0de6de3
commit 8e681991eb

View File

@@ -12,6 +12,7 @@ alias rm='rm -i'
### Git fun
alias gbl='git show $(git ls-files | fzf -e --reverse --bind "enter:become(git blame {1} | fzf -e --ansi --reverse | cut -f 1 -d \" \")")'
alias gg=': | fzf --reverse --bind "change:reload(git grep {q})" --bind "enter:become($EDITOR {1} +{2})" --delimiter :'
### Abbreviations
alias dcr='dc down && dc up -d && dc logs -f'