Загрузка плагинов для установленной версии fzf
This commit is contained in:
parent
faa5c5a550
commit
62670c583c
@ -56,10 +56,14 @@ if command -v fzf > /dev/null 2>&1; then
|
||||
FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
||||
FZF_ALT_C_COMMAND="fd --type d"
|
||||
fi
|
||||
if is-at-least "0.34" "$(fzf --version | awk '{ print $1; }')"; then
|
||||
zinit ice lucid wait'0' mv"completion.zsh -> _fzf" pick"_fzf" as"completion"
|
||||
zinit snippet https://github.com/junegunn/fzf/blob/master/shell/completion.zsh
|
||||
zinit snippet https://github.com/junegunn/fzf/blob/master/shell/key-bindings.zsh
|
||||
FZF_VERSION="$(fzf --version | awk '{ print $1; }')"
|
||||
zinit ice lucid wait'0' mv"completion.zsh -> _fzf" pick"_fzf" as"completion"
|
||||
if is-at-least "0.54" "$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
|
||||
zinit snippet "https://github.com/junegunn/fzf/blob/${FZF_VERSION}.0/shell/completion.zsh"
|
||||
zinit snippet "https://github.com/junegunn/fzf/blob/${FZF_VERSION}.0/shell/completion.zsh"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user