zsh-goto/README.md

23 lines
577 B
Markdown
Raw Normal View History

2016-09-30 17:19:41 +00:00
# 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
2022-08-11 05:32:51 +00:00
$ label add arrdem.com
2016-09-30 17:19:41 +00:00
$ cd
$ echo $PWD
/home/reid
$ goto arrdem.com
$ echo $PWD
/home/reid/doc/programming/web/arrdem.com
```
2022-08-11 05:32:51 +00:00
This is a alpha script and could use some serious attention.
2016-09-30 17:19:41 +00:00
2022-08-11 05:32:51 +00:00
- the labels file (~/.labels.tsv) _must_ be tab separated