Wrapped git in hub, if hub is available.

This commit is contained in:
Aziz Light 2010-11-07 04:21:29 +08:00 committed by Sven Lito
commit fd71de112d

View file

@ -2,3 +2,14 @@
fpath=($ZSH/plugins/github $fpath) fpath=($ZSH/plugins/github $fpath)
autoload -U compinit autoload -U compinit
compinit -i compinit -i
# git + hub = github
# https://github.com/defunkt/hub
function git()
{
if [ -x $(which hub) ]; then
hub "$@"
else
git "$@"
fi
}