added bin/ scripts, created cdg

This commit is contained in:
2015-05-27 20:24:12 -07:00
parent 50228d94ae
commit 8f6dfcca30
9 changed files with 54 additions and 0 deletions

7
bin/cdg Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
# cd's to the parent directory until a .git folder is found
while [ ! -d ".git" ] && [ ! "$PWD" == "/" ]
do
cd ..
done