From 9406ae7929bc1d3a063b65e7559a28268aaf0a7a Mon Sep 17 00:00:00 2001
From: Theodore Robert Campbell Jr <trcjr@stupidfoot.com>
Date: Thu, 3 Mar 2011 21:38:56 -0500
Subject: Whoops, this was supposed to be in the last commit!

---
 plugins/github/github.plugin.zsh | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'plugins/github/github.plugin.zsh')

diff --git a/plugins/github/github.plugin.zsh b/plugins/github/github.plugin.zsh
index c23504b85..72e9b07b9 100644
--- a/plugins/github/github.plugin.zsh
+++ b/plugins/github/github.plugin.zsh
@@ -1,3 +1,9 @@
+# hub alias from defunkt
+# https://github.com/defunkt/hub
+if which hub > /dev/null; then
+    eval $(hub alias -s zsh)
+fi
+
 # add github completion function to path
 fpath=($ZSH/plugins/github $fpath)
 autoload -U compinit
-- 
cgit v1.2.3-70-g09d2


From f0922006aba68e485480a81d83ba53b201270a69 Mon Sep 17 00:00:00 2001
From: Theodore Robert Campbell Jr <trcjr@stupidfoot.com>
Date: Sat, 19 Mar 2011 10:29:22 -0400
Subject: changes recommended by blueyed

---
 plugins/github/github.plugin.zsh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'plugins/github/github.plugin.zsh')

diff --git a/plugins/github/github.plugin.zsh b/plugins/github/github.plugin.zsh
index 72e9b07b9..8d4580654 100644
--- a/plugins/github/github.plugin.zsh
+++ b/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
-- 
cgit v1.2.3-70-g09d2