From b76883727496ed1d35f15425194ebb35d4f15149 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Tue, 31 Oct 2017 09:06:08 -0400 Subject: [PATCH] Add alias to cd into any home repository directory --- dotfiles/.zsh/aliases | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dotfiles/.zsh/aliases b/dotfiles/.zsh/aliases index aa551bec..1eb94d37 100644 --- a/dotfiles/.zsh/aliases +++ b/dotfiles/.zsh/aliases @@ -67,6 +67,9 @@ alias gs="git status" # Compare any local changes you've made to t alias gr="git reset HEAD" # Undo the last commit but keep your changed files alias grr="git reset --hard HEAD" # Remove the last commit and all changes with it +# Easily cd into the "home" directory of any repository you're working in +alias gh="cd `git rev-parse --show-toplevel`" + #################################################################### # Launch aliases (allow us to easily open external programs) ####################################################################