From ead615283a4302bba0dc10bec90a5e7625af60dc Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Mon, 30 Oct 2023 16:00:40 -0400 Subject: Alias to cd to git root --- .config/zsh/.zshrc | 2 ++ 1 file changed, 2 insertions(+) (limited to '.config/zsh') diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index ca70102..d1aa444 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -102,6 +102,8 @@ lfcd () { } alias f='lfcd' +# Git Root +alias gr='cd $(git rev-parse --show-cdup)' # Load zsh-syntax-highlighting; should be last. source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null -- cgit v1.2.3