소스 검색

Add function to easily cd to gitdir

Alois Mahdal 10 년 전
부모
커밋
e2dc42c831
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4
    0
      dotfiles/bash/main.bashrc

+ 4
- 0
dotfiles/bash/main.bashrc 파일 보기

@@ -17,6 +17,10 @@ git() {
17 17
     fi
18 18
 }
19 19
 
20
+gitcd() {
21
+    cd "$(git rev-parse --show-toplevel)"
22
+}
23
+
20 24
 clsz() {
21 25
     tput clear; tput cup $(tput lines) 0
22 26
 }