diff options
author | Robby Russell <robby@planetargon.com> | 2012-11-25 11:35:48 -0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2012-11-25 11:35:48 -0800 |
commit | 63cd6ef7eb99885928544e031f610c74ebb7e818 (patch) | |
tree | fbc45878061319bef2c22f01e155cb6174736f75 | |
parent | fdfc0b3cd966012c347a17b2352feb5f1574419d (diff) | |
parent | 7be660bf1d0d8ae054b645278ea4e79e71c8beec (diff) | |
download | zsh-63cd6ef7eb99885928544e031f610c74ebb7e818.tar.gz zsh-63cd6ef7eb99885928544e031f610c74ebb7e818.tar.bz2 zsh-63cd6ef7eb99885928544e031f610c74ebb7e818.zip |
Merge pull request #1415 from jmatth/git_root_pull
Adding grt alias to the git plugin.
-rw-r--r-- | plugins/git/git.plugin.zsh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index d3d3f702a..71388c53a 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -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 |