From b6e13eedcda0cf6abca7d6b3cfb4a36feab74afe Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Thu, 11 Feb 2016 08:52:38 -0800 Subject: [PATCH] [zsh] Add compdef so g acts like git for completion --- zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zshrc b/zshrc index e98159d..b05652f 100644 --- a/zshrc +++ b/zshrc @@ -207,6 +207,11 @@ function configure_completion #{{{ # Complete man pages by section zstyle ':completion:*:manuals' separate-sections true zstyle ':completion:*:manuals.*' insert-sections true + + # Use git completion for the g function (which is a small wrapper around git; see .rc) + if [[ `whence -w g` =~ "function" ]]; then + compdef g='git' + fi } #}}}