Skip to content

Commit 1ff7117

Browse files
committed
updated git.sh
1 parent 7f4a3a5 commit 1ff7117

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.bash.d/git.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ git_root(){
183183
git rev-parse --show-toplevel
184184
popd &>/dev/null || return 1
185185
}
186+
alias gitroot=git_root
187+
alias cdgitroot="cd $(git_root)"
186188

187189
gitgc(){
188190
cd "$(git_root)" || :

0 commit comments

Comments
 (0)