[zsh] Add compdef so g acts like git for completion
This commit is contained in:
parent
6824229b8d
commit
b6e13eedcd
1 changed files with 5 additions and 0 deletions
5
zshrc
5
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
|
||||
} #}}}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue