Use local fzf first if available

This commit is contained in:
Jeremy Gardais 2022-11-02 15:54:13 +01:00
parent cd995ddb03
commit da2300b6da
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 2 additions and 1 deletions

3
zshrc
View File

@ -1919,8 +1919,9 @@ setopt extendedglob
## fzf ## fzf
if [ -d ~/.fzf ]; then if [ -d ~/.fzf ]; then
## If local fzf bin is available use it in priority
if [[ ! "$PATH" == *"${HOME}"/.fzf/bin* ]]; then if [[ ! "$PATH" == *"${HOME}"/.fzf/bin* ]]; then
export PATH="$PATH:${HOME}/.fzf/bin" export PATH="${HOME}/.fzf/bin:${PATH}"
fi fi
if [ -f ~/bin/fd ]; then if [ -f ~/bin/fd ]; then