Test different fd bin path

This commit is contained in:
gardouille 2024-03-12 12:06:56 +01:00
parent 13179aba13
commit 9c49c7b29b
Signed by: gardouille
GPG Key ID: E759BAA22501AF32
1 changed files with 5 additions and 1 deletions

6
zshrc
View File

@ -2062,9 +2062,13 @@ if [[ ! "$PATH" == *"${HOME}"/.fzf/bin* ]]; then
export PATH="${HOME}/.fzf/bin:${PATH}"
fi
if [ -f ~/bin/fd ]; then
## IF fd is AVAILABLE {{{
if [ -f ~/bin/fd ] ||
[ -f /bin/fd ] ||
[ -f /usr/bin/fd ]; then
export FZF_DEFAULT_COMMAND='fd --type f'
fi
## }}}
autoload is-at-least
if is-at-least 0.29.0 $(fzf --version); then