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:
parent
348621d824
commit
359de7e1bd
1 changed files with 7 additions and 0 deletions
|
@ -23,3 +23,10 @@ elif type ack >/dev/null 2>&1; then
|
|||
else
|
||||
echo "[WARNING]: No grep-like found - install rg/ag/ack to enable functionality"
|
||||
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"
|
Loading…
Reference in a new issue