diff --git a/modules/git/hub.zsh b/modules/git/hub.zsh new file mode 100644 index 0000000..e2c9280 --- /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 3a618f2..8562d39 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"