Use local fzf first if available

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

3
zshrc
View File

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