Add gcd command to CD within git trees

This commit is contained in:
Talia 2020-05-15 09:59:40 +02:00
parent 4f704b1151
commit 20fabff976
2 changed files with 4 additions and 0 deletions

1
bashrc
View file

@ -1,4 +1,5 @@
# vim: set noexpandtab :miv #
alias gcd="source git-cd"
alias hello='echo "Hello :)"'
alias w='watch -t -d -n 1'
alias setclip='xclip -selection c'

3
bin/git-cd Normal file
View file

@ -0,0 +1,3 @@
#!/bin/sh
cd "$(git rev-parse --show-toplevel)/"$@