From c13771f57a47e0447e4082433fab1f17fee33f73 Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Sun, 28 Jul 2024 22:25:03 +0200 Subject: [PATCH] shell: add ripgrep+fzf bind --- files/shell/.shellrc.alias | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/files/shell/.shellrc.alias b/files/shell/.shellrc.alias index 0f8381f..37e3774 100644 --- a/files/shell/.shellrc.alias +++ b/files/shell/.shellrc.alias @@ -11,9 +11,13 @@ alias mv='mv -i' alias rm='rm -i' ### fzf fun +alias f='fzf --reverse' +alias c='cd $(fd --type d | fzf --reverse)' + 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 :' -alias c='cd $(fd --type d | fzf)' + +alias rf=': | fzf --reverse --ansi --bind "change:reload(rg {q} --line-number)" --bind "enter:become($EDITOR {1} +{2})" --delimiter :' ### Abbreviations alias d='docker'