]> git.rmz.io Git - dotfiles.git/commitdiff
zsh: `cdr` is much better than `grt`
authorSamir Benmendil <me@rmz.io>
Wed, 13 Apr 2016 12:56:32 +0000 (13:56 +0100)
committerSamir Benmendil <me@rmz.io>
Wed, 13 Apr 2016 12:57:12 +0000 (13:57 +0100)
zsh/aliases/git.zsh

index a51ec1ec6747d9cf6611ea6f048a70481d8943a1..e8cd9f09690cd3f30fe6e840066ec283b89f4b88 100644 (file)
@@ -69,7 +69,7 @@ alias gpoat='git push origin --all && git push origin --tags'
 
 # cd into the top of the current repository
 # or submodule.
-alias grt='cd $(git rev-parse --show-toplevel || echo ".")'
+alias cdr='cd $(git rev-parse --show-toplevel || echo ".")'
 
 # Git and svn mix
 alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk'