Rename fuzzy finding shell script

In preparation for extending the scripting, renamed the script from just
being a re-aliasing of fzf. Now, all fuzzy finding logic can reside in
this file.
This commit is contained in:
Marty Oehme 2019-06-17 18:01:23 +02:00
parent 348621d824
commit 359de7e1bd

View file

@ -23,3 +23,10 @@ elif type ack >/dev/null 2>&1; then
else else
echo "[WARNING]: No grep-like found - install rg/ag/ack to enable functionality" echo "[WARNING]: No grep-like found - install rg/ag/ack to enable functionality"
fi fi
# set up fuzzy file and directory search
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"