From 7f2d31260d78aa271e4b0dc2b167278d3e73d5dc Mon Sep 17 00:00:00 2001 From: MatToufoutu Date: Tue, 28 Sep 2010 14:20:49 +0200 Subject: [PATCH] added alias for hub (git wrapper for github) to git plugin --- plugins/git.plugin.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/git.plugin.zsh b/plugins/git.plugin.zsh index 655eaf728..5d639dd7a 100644 --- a/plugins/git.plugin.zsh +++ b/plugins/git.plugin.zsh @@ -1,4 +1,5 @@ # Aliases +[[ -x $(which hub) ]] && function git(){hub "$@"} alias g='git' alias gst='git status' alias gl='git pull' @@ -13,7 +14,6 @@ alias gba='git branch -a' alias gcount='git shortlog -sn' alias gcp='git cherry-pick' - # Git and svn mix alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk' @@ -29,4 +29,4 @@ function current_branch() { # these aliases take advangate of the previous function alias ggpull='git pull origin $(current_branch)' alias ggpush='git push origin $(current_branch)' -alias ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)' \ No newline at end of file +alias ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)'