A directory favorite tool in Rust.
-
Add a favorite directory named
footo diar:-
The current directory:
diar add foo -
Specify the full path of a directory:
diar add -p /path/to/directory foo
-
-
Rename a favorites from
footobar:diar rename foo bar
-
Delete
barfrom diar:diar delete bar -
Jump to
foothat added directory path to diar:diar-jump fooOr, you'd like to jump to the current project root directory:
diar-jump -pDon't forget the
-, please wait for the future ;( -
Show the list of added to diar:
diar list -
For more options refer to help:
diar -h
-
Install cargo
curl -sSf https://static.rust-lang.org/rustup.sh | sh
-
Add the following to your
$HOME.bashrcor othersdiar-jump(){ local result=$(diar jump $1) if [ -n "$result" ]; then if echo "$result" | grep -e "error:" > /dev/null || [ "$1" = "-h" ]; then echo -e "$result" else \cd $result fi fi }
-
Install diar
cargo install diar