Add gcd command to CD within git trees
This commit is contained in:
parent
4f704b1151
commit
20fabff976
2 changed files with 4 additions and 0 deletions
1
bashrc
1
bashrc
|
@ -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
3
bin/git-cd
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd "$(git rev-parse --show-toplevel)/"$@
|
Loading…
Reference in a new issue