Add gitcd (and czgcd) functions

This commit is contained in:
Lockszmith (VAST@MacBook) 2025-04-17 18:22:07 -04:00
parent 66ffbc9098
commit a546290cf6
2 changed files with 9 additions and 0 deletions

View file

@ -35,5 +35,11 @@ alias vim='nvim '
alias nvimdiff='nvim -d '
alias vimdiff='nvimdiff '
if is_cmd git; then
gitcd() {
cd "$(git rev-parse --show-toplevel)${1:+/${1}}"
}
fi
# vim: set ft=sh expandtab tabstop=4 shiftwidth=4: