Browse code

Merge pull request #273 from blueyed/hub-alias-only-with-ruby

Minor fix for the github plugin: check for `ruby`.

Robby Russell authored on 10/10/2011 at 12:27:33
Showing 1 changed files
... ...
@@ -1,6 +1,5 @@
1
-# hub alias from defunkt
2
-# https://github.com/defunkt/hub
3
-if [ "$commands[(I)hub]" ]; then
1
+# Setup hub function for git, if it is available; http://github.com/defunkt/hub
2
+if [ "$commands[(I)hub]" ] && [ "$commands[(I)ruby]" ]; then
4 3
     # eval `hub alias -s zsh`
5 4
     function git(){hub "$@"}
6 5
 fi