diff options
author | Robby Russell <robby@planetargon.com> | 2010-09-30 21:34:06 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2010-09-30 21:34:06 -0700 |
commit | 26d97a9355d37c55e0b044d8dafc425cc0ca7217 (patch) | |
tree | b2fa7a19bd7b767b9fa37c9baaec5a7209b6a90c /plugins/git.plugin.zsh | |
parent | 7a09175bb4c32c7027dab872cd7b80503da3f5d5 (diff) | |
download | zsh-26d97a9355d37c55e0b044d8dafc425cc0ca7217.tar.gz zsh-26d97a9355d37c55e0b044d8dafc425cc0ca7217.tar.bz2 zsh-26d97a9355d37c55e0b044d8dafc425cc0ca7217.zip |
Reorganizing plugins so that each plugin has it's own directory now so that any plugin-specific functions can be bundled within there.
Diffstat (limited to 'plugins/git.plugin.zsh')
-rw-r--r-- | plugins/git.plugin.zsh | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/plugins/git.plugin.zsh b/plugins/git.plugin.zsh deleted file mode 100644 index 655eaf728..000000000 --- a/plugins/git.plugin.zsh +++ /dev/null @@ -1,32 +0,0 @@ -# Aliases -alias g='git' -alias gst='git status' -alias gl='git pull' -alias gup='git fetch && git rebase' -alias gp='git push' -alias gd='git diff | mate' -alias gdv='git diff -w "$@" | vim -R -' -alias gc='git commit -v' -alias gca='git commit -v -a' -alias gb='git branch' -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' - -# -# Will return the current branch name -# Usage example: git pull origin $(current_branch) -# -function current_branch() { - ref=$(git symbolic-ref HEAD 2> /dev/null) || return - echo ${ref#refs/heads/} -} - -# 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 |