From 453b15425209c5d612a961bdf647a3faebc81b51 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 20 Aug 2019 21:31:51 +0100 Subject: [PATCH] Add command to `cd` to git root --- files/zshrc/applications.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/zshrc/applications.sh b/files/zshrc/applications.sh index d72cefb..8d18edf 100644 --- a/files/zshrc/applications.sh +++ b/files/zshrc/applications.sh @@ -4,6 +4,8 @@ eval "$(fasd --init auto)" # git aliases alias gs="git status" alias gd="git diff" +alias git-root='cd $(git root)' + gh() { if [ $# -eq 1 ]; then command git clone git@github.com:RealOrangeOne/${1} --recursive && cd ${1}