From 0d1192758ce1cb1dd2ac35cdb94eb5899b40f23d Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Sun, 18 Dec 2022 12:37:32 +0300 Subject: [PATCH] Git Extras --- 45-plugins.zsh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/45-plugins.zsh b/45-plugins.zsh index 613a042..5098c31 100644 --- a/45-plugins.zsh +++ b/45-plugins.zsh @@ -43,11 +43,20 @@ zinit light joshskidmore/zsh-fzf-history-search if command -v git > /dev/null 2>&1; then GIT_AUTO_FETCH_INTERVAL=3600 zinit snippet OMZP::git - zinit snippet OMZP::git-extras zinit snippet OMZP::github - [ -z ${SSH_CONNECTION+set} ] && zinit snippet OMZP::git-auto-fetch zinit load paulirish/git-open + [ -z ${SSH_CONNECTION+set} ] && zinit snippet OMZP::git-auto-fetch + if [ -x /usr/bin/git-extras ]; then + zinit snippet OMZP::git-extras + else + zinit lucid wait'0a' for \ + as"program" \ + pick"$ZPFX/bin/git-*" \ + src"etc/git-extras-completion.zsh" \ + make"PREFIX=$ZPFX" tj/git-extras + fi fi + if command -v psql > /dev/null 2>&1; then zinit snippet OMZP::postgres fi