newdir

Crates.ionewdir
lib.rsnewdir
version0.1.0
sourcesrc
created_at2020-09-18 20:36:12.308892
updated_at2020-09-18 20:36:12.308892
descriptionA simple program to create a temporary directory with a friendly name
homepage
repositoryhttps://github.com/tronje/newdir
max_upload_size
id290266
size5,830
Tronje (tronje)

documentation

README

newdir

A friendly tmp-program script

Installation

  1. Clone the repository
  2. cargo install --path .
  3. Put source /path/to/repostiory/checkout/newdir.sh in one of your init files, e.g. .zshrc.

OR

  1. cargo install newdir
  2. Put alias 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.

Usage Example

$ echo $PWD
/home/tronje
$ newdir
cd /tmp/tronje/jolly_weasel
$ echo $PWD
/tmp/tronje/jolly_weasel
Commit count: 11

cargo fmt