diff --git a/plugins/github/github.plugin.zsh b/plugins/github/github.plugin.zsh index c23504b85..28ca116b2 100644 --- a/plugins/github/github.plugin.zsh +++ b/plugins/github/github.plugin.zsh @@ -2,3 +2,14 @@ fpath=($ZSH/plugins/github $fpath) autoload -U compinit compinit -i + +# git + hub = github +# https://github.com/defunkt/hub +function git() +{ + if [ -x $(which hub) ]; then + hub "$@" + else + git "$@" + fi +} \ No newline at end of file