Add fzf in PATH before testing if it's available

This commit is contained in:
gardouille 2024-04-01 16:47:31 +02:00
parent 89bdb4bcbb
commit e1e31b0e56
Signed by: gardouille
GPG Key ID: E759BAA22501AF32
1 changed files with 3 additions and 3 deletions

6
zshrc
View File

@ -2055,14 +2055,14 @@ setopt extendedglob
############### 9. Modules ################
###########################################
## 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
export PATH="${HOME}/.fzf/bin:${PATH}"
fi
## IF fzf is AVAILABLE
if [ $(command -v fzf) ]; then
## IF fd is AVAILABLE {{{
if [ -f ~/bin/fd ] ||
[ -f /bin/fd ] ||