| Crates.io | newdir |
| lib.rs | newdir |
| version | 0.1.0 |
| created_at | 2020-09-18 20:36:12.308892+00 |
| updated_at | 2020-09-18 20:36:12.308892+00 |
| description | A simple program to create a temporary directory with a friendly name |
| homepage | |
| repository | https://github.com/tronje/newdir |
| max_upload_size | |
| id | 290266 |
| size | 5,830 |
A friendly tmp-program script
cargo install --path .source /path/to/repostiory/checkout/newdir.sh in one of your init files, e.g. .zshrc.OR
cargo install newdiralias newdir='eval $(~/.cargo/bin/newdir)' in one of your init files, e.g. .zshrc.Unfortunately, since cd is always (I think?) a shell-builtin, newdir cannot
actually change your current working directory for you, so there needs to be some
workaround, like with the alias proposed in this README.
$ echo $PWD
/home/tronje
$ newdir
cd /tmp/tronje/jolly_weasel
$ echo $PWD
/tmp/tronje/jolly_weasel