From 2d631a01fa5cb1a2274193a72eb3ab6459f3bfd0 Mon Sep 17 00:00:00 2001 From: Matt Hamilton Date: Thu, 24 Sep 2015 07:29:56 -0400 Subject: [PATCH] add g.. alias --- modules/git/README.md | 4 ++++ modules/git/alias.zsh | 3 +++ 2 files changed, 7 insertions(+) diff --git a/modules/git/README.md b/modules/git/README.md index c2d0449c..32733ee7 100644 --- a/modules/git/README.md +++ b/modules/git/README.md @@ -208,6 +208,10 @@ Aliases - `gwX` removes files from the working tree and from the index recursively and forcefully. +### Miscellaneous + + - `g..` changes to the root of the git repository. + ### Shadows The following aliases may shadow system commands: diff --git a/modules/git/alias.zsh b/modules/git/alias.zsh index ffa854dd..891cd494 100644 --- a/modules/git/alias.zsh +++ b/modules/git/alias.zsh @@ -179,3 +179,6 @@ alias gwc='git clean -n' alias gwC='git clean -f' alias gwx='git rm -r' alias gwX='git rm -rf' + +# Misc +alias g..='cd $(git-root || echo ".")'