1
0
Fork 0

zshrc: fix groot alias to not occasionally go to homedir instead of a repo root

This commit is contained in:
Von Random 2021-08-20 17:13:49 +03:00
parent 2fe453963f
commit d1bcefc022

2
zshrc
View file

@ -169,7 +169,7 @@ gci() { command git commit $@ }
gsl() { command git stash list $@ } gsl() { command git stash list $@ }
gss() { command git status -sbu $@ } gss() { command git status -sbu $@ }
gup() { command git pull $@ } gup() { command git pull $@ }
groot() { cd $(command git rev-parse --show-cdup) || return 1 } groot() { cd $(command git rev-parse --show-toplevel) || return 1 }
ggrep() { command git grep $@ } ggrep() { command git grep $@ }
gsi() { command tig status } gsi() { command tig status }