Browse code

changes recommended by blueyed

Theodore Robert Campbell Jr authored on 19/03/2011 at 14:29:22
Showing 1 changed files
... ...
@@ -1,7 +1,8 @@
1 1
 # hub alias from defunkt
2 2
 # https://github.com/defunkt/hub
3
-if which hub > /dev/null; then
4
-    eval $(hub alias -s zsh)
3
+if [ "$commands[(I)hub]" ]; then
4
+    # eval `hub alias -s zsh`
5
+    function git(){hub "$@"}
5 6
 fi
6 7
 
7 8
 # add github completion function to path