diff --git a/45-plugins.zsh b/45-plugins.zsh index 3f36150..79883a5 100644 --- a/45-plugins.zsh +++ b/45-plugins.zsh @@ -30,15 +30,19 @@ zinit snippet OMZP::pre-commit zinit snippet OMZP::rsync zinit snippet OMZP::vscode zinit snippet OMZP::web-search -zinit light brymck/print-alias +if command -v git-lfs > /dev/null 2>&1; then + zinit light brymck/print-alias +fi if command -v fzf > /dev/null 2>&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 + 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 - zinit ice lucid wait'0' lucid - zinit light joshskidmore/zsh-fzf-history-search + zinit ice lucid wait'0' lucid + zinit light joshskidmore/zsh-fzf-history-search + fi fi if command -v git > /dev/null 2>&1; then diff --git a/README.md b/README.md index 741597c..1398092 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,8 @@ sh -c "$(curl -fsSL https://raw.githubusercontent.com/romkatv/zsh-bin/master/ins sudo apt-get install autojump command-not-found grc grepcidr kitty-terminfo wmctrl xdotool ``` -Установить дополнительные программы по [инструкции](https://git.246060.ru/f1x1t/eget-config/). +Установить дополнительные программы по [инструкции](https://git.246060.ru/config/eget/). + Клонировать репозиторий с настройками Zsh в каталог `~/.config/zsh`: