diff --git a/modules/git/hub.zsh b/modules/git/hub.zsh new file mode 100644 index 00000000..e2c92806 --- /dev/null +++ b/modules/git/hub.zsh @@ -0,0 +1,15 @@ +# +# Adds GitHub knowledge to the Git command. +# https://github.com/defunkt/hub +# +# Authors: +# Chris Wanstrath +# Sorin Ionescu +# + +if (( $+commands[hub] )); then + function git { + hub "$@" + } +fi + diff --git a/modules/git/init.zsh b/modules/git/init.zsh index 3a618f23..8562d395 100644 --- a/modules/git/init.zsh +++ b/modules/git/init.zsh @@ -15,4 +15,5 @@ pmodload 'helper' # Source module files. source "${0:h}/alias.zsh" +source "${0:h}/hub.zsh"