Test if fzf command is available

This commit is contained in:
gardouille 2024-03-12 09:12:46 +01:00
parent 4e7da05f23
commit 13179aba13
Signed by: gardouille
GPG Key ID: E759BAA22501AF32
1 changed files with 3 additions and 3 deletions

6
zshrc
View File

@ -2054,8 +2054,8 @@ setopt extendedglob
############### 9. Modules ################
###########################################
## IF fzf AVAILABLE
if [ -d ~/.fzf ]; then
## IF fzf is AVAILABLE
if [ $(command -v fzf) ]; then
## If local fzf bin is available use it in priority
if [[ ! "$PATH" == *"${HOME}"/.fzf/bin* ]]; then
@ -2540,7 +2540,7 @@ function passf() {
# }}}
fi
## ENDIF fzf AVAILABLE
## ENDIF fzf is AVAILABLE
# }}}
# zsh-syntax-highlighting {{{