shell-scripts/goto/README.md

15 lines
680 B
Markdown
Raw Permalink Normal View History

2023-07-06 11:07:16 -04:00
# Goto
I don't like how jump works, so I made a different solution: I got tired of using cd to go through structured directories for development, so my `goto` uses a `.goto` ini file in the root directory of a project to store aliases for directories. For a sample configuration:
```ini
[goto]
root = .
foo = ./some/long/directory/path/
bar = ./some/other/long/path/
```
`goto foo` replaces `cd some/long/directory/path/`, and from `some/long/directory/path/` to get back to the "root" we put the file at, `goto root` replaces `cd ../../../../`.
## Installing goto
just move the two scripts into `/usr/lib/goto/` and add `source /usr/lib/goto/goto.sh` to your shell `rc` file.