[zsh] Add compdef so g acts like git for completion

This commit is contained in:
Eryn Wells 2016-02-11 08:52:38 -08:00
parent 6824229b8d
commit b6e13eedcd

5
zshrc
View file

@ -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
} #}}}