mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Wrapped git in hub, if hub is available.
This commit is contained in:
parent
fe86d62c04
commit
fd71de112d
1 changed files with 11 additions and 0 deletions
|
|
@ -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
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue