diff --git a/zshrc b/zshrc index 7c7cb6d..11875c4 100644 --- a/zshrc +++ b/zshrc @@ -1806,7 +1806,13 @@ if [ -f ~/bin/fd ]; then export FZF_DEFAULT_COMMAND='fd --type f' fi -export FZF_DEFAULT_OPTS="--cycle --multi --select-1 --bind change:first" +autoload is-at-least +if is-at-least 0.29.0 $(fzf --version); then + export FZF_DEFAULT_OPTS="--cycle --multi --select-1 --bind change:first" +else + ## change:first is unknown in FZF before 0.29.0 + export FZF_DEFAULT_OPTS="--cycle --multi --select-1" +fi # Auto-completion # ---------------