From 215f93d65aec55bdb7e2486be3f77a0d94eab9aa Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 17 Jun 2019 22:33:13 +0200 Subject: [PATCH] Fix fuzzy directory search Fixed search to be passed along to cd, not the rifle command. --- .config/shell/rc.d/fuzzy-finding.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/shell/rc.d/fuzzy-finding.sh b/.config/shell/rc.d/fuzzy-finding.sh index 3cf4dd2..1b8bc2b 100644 --- a/.config/shell/rc.d/fuzzy-finding.sh +++ b/.config/shell/rc.d/fuzzy-finding.sh @@ -31,8 +31,8 @@ fi alias f="fzf -c 'find . -type f' --preview='head -$LINES {}' | xargs rifle" alias F="fzf -c 'find ~ -type f' --preview='head -$LINES {}' | xargs rifle" -alias d="fzf -c 'find . -type d' --preview='ls --color='always' {}' | xargs rifle" -alias D="fzf -c 'find ~ -type d' --preview='ls --color='always' {}' --color=dark --ansi | xargs rifle" +alias d="fzf -c 'find . -type d' --preview='ls --color='always' {}' | cd" +alias D="fzf -c 'find ~ -type d' --preview='ls --color='always' {}' --color=dark --ansi | cd" # Display fuzzy-searchable history alias zhfind="history | fzf --tac --height 20"