Initial implementation of a new plugin system, so that people can managed which aliases/functions they want.

This commit is contained in:
Robby Russell
2010-06-03 12:03:26 -07:00
parent eb0f3c0234
commit 3cf9ab722e
9 changed files with 69 additions and 64 deletions

21
plugins/git.plugin.zsh Normal file
View File

@@ -0,0 +1,21 @@
# 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'
alias ggpull='git pull origin $(current_branch)'
alias ggpush='git push origin $(current_branch)'