From 43bc038d410624d25f2350d56377a71b811cd362 Mon Sep 17 00:00:00 2001 From: Luis Miguel Hernanz Date: Tue, 14 Nov 2017 21:17:45 -0800 Subject: [PATCH] Preserve the existing user_commands in the git completion system --- etc/git-extras-completion.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/etc/git-extras-completion.zsh b/etc/git-extras-completion.zsh index 51ab77d33..8272ff71d 100644 --- a/etc/git-extras-completion.zsh +++ b/etc/git-extras-completion.zsh @@ -427,7 +427,9 @@ _git-undo(){ '(--hard -h)'{--hard,-h}'[wipes your commit(s)]' } -zstyle ':completion:*:*:git:*' user-commands \ +zstyle -g existing_user_commands ':completion:*:*:git:*' user-commands + +zstyle ':completion:*:*:git:*' user-commands $existing_user_commands \ alias:'define, search and show aliases' \ archive-file:'export the current head of the git repository to an archive' \ authors:'generate authors report' \