# hub alias from defunkt # https://github.com/defunkt/hub if [ "$commands[(I)hub]" ]; then # eval `hub alias -s zsh` function git(){hub "$@"} fi # add github completion function to path 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 }