From accc2e3f69534c765ed0a0da72524ad4ed00e7f3 Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Wed, 20 Jun 2012 09:19:32 -0500 Subject: [PATCH] [git] checking for existence of hub if hub is present, alias git to hub hub can be installed on os x using homebrew - `brew install hub` https://github.com/defunkt/hub --- git/git.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/git/git.zsh b/git/git.zsh index 0f233f8..5153fa2 100644 --- a/git/git.zsh +++ b/git/git.zsh @@ -20,3 +20,7 @@ function git_rename() { git mv $1 "${2}-" git mv "${2}-" $2 } + +if which hub &> /dev/null; then + alias git='hub' +fi