# add github completion function to path
fpath=($ZSH/plugins/github $fpath)
autoload -U compinit
compinit -i

# Setup hub alias for git, if it is available, see http://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

# Setup hub alias for git, if it is available, see http://github.com/defunkt/hub
if [ "$commands[(I)hub]" ] && [ "$commands[(I)ruby]" ]; then
	# eval `hub alias -s zsh`
	function git(){hub "$@"}
fi

Check that `ruby` exists, before aliasing git=hub.
Check that `ruby` exists, before aliasing git=hub.

Ruby might not be installed on a lightweight host/container.
