A combination of vim and bash that I find useful
had to add wd again
2 files changed, +7 -1
+6-0gfuncs.sh
| @@ -96,3 +96,9 @@ function vbash { | ||
| 96 | 96 | done |
| 97 | 97 | cd $start |
| 98 | 98 | } |
| 99 | +function wdl { | |
| 100 | + dirname `which $1` | |
| 101 | +} | |
| 102 | +function wd { | |
| 103 | + cd `wdl $1` | |
| 104 | +} |
+1-1ghost.sh
| @@ -6,7 +6,7 @@ if uname -a | grep -q MINGW;then | ||
| 6 | 6 | export thisos='windows' |
| 7 | 7 | alias python3=python |
| 8 | 8 | alias Python=python |
| 9 | - alias drivers='cd /c/Windows/System32/drivers/etc' | |
| 9 | + alias drivers='/c/Windows/System32/drivers/etc' | |
| 10 | 10 | else |
| 11 | 11 | alias python=python3 |
| 12 | 12 | fi |