From 727e0c65df9edfa1848f032a7c8d24967ba2c8a4 Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Thu, 18 Jul 2024 13:55:34 +0200 Subject: [PATCH] shell: add fzf dir finder --- files/shell/.shellrc.alias | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/shell/.shellrc.alias b/files/shell/.shellrc.alias index 5d577c4..0f8381f 100644 --- a/files/shell/.shellrc.alias +++ b/files/shell/.shellrc.alias @@ -10,9 +10,10 @@ alias cp='cp -i' alias mv='mv -i' alias rm='rm -i' -### Git fun +### fzf 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 :' +alias c='cd $(fd --type d | fzf)' ### Abbreviations alias d='docker'