From c386733efd154b56628466b772a9ac55331b715f Mon Sep 17 00:00:00 2001 From: spacewander Date: Tue, 25 Aug 2020 14:45:12 +0800 Subject: [PATCH] git-info: add zsh completion --- etc/git-extras-completion.zsh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/etc/git-extras-completion.zsh b/etc/git-extras-completion.zsh index 702cc39..3ae4bae 100644 --- a/etc/git-extras-completion.zsh +++ b/etc/git-extras-completion.zsh @@ -267,6 +267,13 @@ _git-ignore() { } +_git-info() { + _arguments -C \ + '(--color -c)'{--color,-c}'[use color for information titles]' \ + '--no-config[do not show list all variables set in config file, along with their values]' +} + + _git-merge-into() { _arguments '--ff-only[merge only fast-forward]' _arguments \