github.plugin.zsh 313 Bytes
Newer Older
1
2
# Setup hub function for git, if it is available; http://github.com/defunkt/hub
if [ "$commands[(I)hub]" ] && [ "$commands[(I)ruby]" ]; then
3
4
    # eval `hub alias -s zsh`
    function git(){hub "$@"}
5
6
fi

Sven Lito's avatar
Sven Lito committed
7
8
9
10
# add github completion function to path
fpath=($ZSH/plugins/github $fpath)
autoload -U compinit
compinit -i