22 lines
577 B
Markdown
22 lines
577 B
Markdown
# goto.zsh
|
|
If you're like me and you maintain a hierarchical filesystem, it can be a real
|
|
pain to get where you want to go. I know they're considered harmful, but why not
|
|
try a `goto`?
|
|
|
|
```shell
|
|
$ cd ~/doc/programming/web/arrdem.com
|
|
$ echo $PWD
|
|
/home/reid/doc/programming/web/arrdem.com
|
|
# that's long as hell... let's fix that
|
|
$ label add arrdem.com
|
|
$ cd
|
|
$ echo $PWD
|
|
/home/reid
|
|
$ goto arrdem.com
|
|
$ echo $PWD
|
|
/home/reid/doc/programming/web/arrdem.com
|
|
```
|
|
|
|
This is a alpha script and could use some serious attention.
|
|
|
|
- the labels file (~/.labels.tsv) _must_ be tab separated
|