bcd
is a way to cd
to directories that have been bookmarked.
Currently the way to install bcd
is via the rust tool cargo:
bash
cargo install bookmark-cd
At the moment, only the bash
shell is supported, feel free to contribute if you are reading this
and youmuse a different shell.
Run the following command to set up your bash environment.
bash
bookmark-cd -i
What this task is doing is:
.bcd
~/.bashrc
file to add the bcd
shell function when you start your shell:
eval "$(bookmark-cd init)"
As the shell function creation only gets run when you start a new instance of your shell, you need to start a new
shell before the bcd
command works.
``` bash
cd /var/log bcd logs
cd ~
bcd -l
bcd logs pwd ```
There are many shell that this tool could be used on, I just don't use them. I would be happy to take a look at any PRs that add support for other shells.