[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
This commit is contained in:
Nick Nisi
2012-06-20 09:19:32 -05:00
parent eba3272050
commit accc2e3f69

View File

@@ -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