mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Conflicts: .gitignore lib/directories.zsh lib/termsupport.zsh lib/theme-and-appearance.zsh oh-my-zsh.sh plugins/git/git.plugin.zsh plugins/osx/osx.plugin.zsh
23 lines
407 B
Bash
23 lines
407 B
Bash
# 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
|
|
}
|