diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2023-10-30 16:00:40 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2023-10-30 16:00:40 -0400 |
commit | ead615283a4302bba0dc10bec90a5e7625af60dc (patch) | |
tree | c0f1b493c79518be0254e94146fc9891c907e3e6 | |
parent | 3e40e087ff22b626a31eb26dcd7cbcab4f75ef7f (diff) |
Alias to cd to git root
-rw-r--r-- | .config/zsh/.zshrc | 2 |
1 files changed, 2 insertions, 0 deletions
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 |