Merge pull request #680 from lhernanz/master

Preserve existing user commands in zsh completion
This commit is contained in:
罗泽轩 2017-11-15 15:12:08 +08:00 committed by GitHub
commit 6aecc2b9fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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' \