Номер версии fzf

This commit is contained in:
Andrei Astafev 2025-02-06 10:07:57 +03:00
parent 1df17fc702
commit ee02aea5a7

View File

@ -58,7 +58,7 @@ if command -v fzf > /dev/null 2>&1; then
fi
FZF_VERSION="$(fzf --version | sed -r 's/([0-9]+\.[0-9]+)\..*/\1/' )"
zinit ice lucid wait'0' mv"completion.zsh -> _fzf" pick"_fzf" as"completion"
if is-at-least "0.54" "$FZF_VERSION"; then
if is-at-least "0.37" "$FZF_VERSION"; then
zinit snippet "https://raw.githubusercontent.com/junegunn/fzf/refs/tags/v${FZF_VERSION}.0/shell/completion.zsh"
zinit snippet "https://raw.githubusercontent.com/junegunn/fzf/refs/tags/v${FZF_VERSION}.0/shell/key-bindings.zsh"
else