Fix fuzzy directory search

Fixed search to be passed along to cd, not the rifle command.
This commit is contained in:
Marty Oehme 2019-06-17 22:33:13 +02:00
parent 900b949a7a
commit 215f93d65a

View file

@ -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"