Browse Source

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

Minor fix for the github plugin: check for `ruby`.
Robby Russell 12 years ago
parent
commit
cc82ac1ed6
1 changed files with 2 additions and 3 deletions
  1. 2 3
      plugins/github/github.plugin.zsh

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

@@ -1,6 +1,5 @@
-# hub alias from defunkt
-# https://github.com/defunkt/hub
-if [ "$commands[(I)hub]" ]; then
+# Setup hub function for git, if it is available; http://github.com/defunkt/hub
+if [ "$commands[(I)hub]" ] && [ "$commands[(I)ruby]" ]; then
     # eval `hub alias -s zsh`
     function git(){hub "$@"}
 fi