1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-11 00:10:08 +00:00

Merge pull request #1415 from jmatth/git_root_pull

Adding grt alias to the git plugin.
This commit is contained in:
Robby Russell 2012-11-25 11:35:48 -08:00
commit 63cd6ef7eb

View file

@ -39,6 +39,10 @@ compdef _git gm=git-merge
alias grh='git reset HEAD'
alias grhh='git reset HEAD --hard'
# Will cd into the top of the current repository
# or submodule.
alias grt='cd $(git rev-parse --show-toplevel || echo ".")'
# Git and svn mix
alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk'
compdef git-svn-dcommit-push=git