Browse Source

changes recommended by blueyed

Theodore Robert Campbell Jr 14 years ago
parent
commit
f0922006ab
1 changed files with 3 additions and 2 deletions
  1. 3 2
      plugins/github/github.plugin.zsh

+ 3 - 2
plugins/github/github.plugin.zsh

@@ -1,7 +1,8 @@
 # hub alias from defunkt
 # https://github.com/defunkt/hub
-if which hub > /dev/null; then
-    eval $(hub alias -s zsh)
+if [ "$commands[(I)hub]" ]; then
+    # eval `hub alias -s zsh`
+    function git(){hub "$@"}
 fi
 
 # add github completion function to path