zoxide
zoxide is a smarter cd command. Supports all major shells. source code
It remembers which directories you use most frequently, so you can "jump" to them in just a few keystrokes.
Install zoxide to AnduinOS:
sudo apt install zoxide
Activate zoxide in your shell:
# add this line to your $HOME/.bashrc if you are using bash
eval "$(zoxide init bash)"
# add this line to your $HOME/.zshrc if you are using zsh
eval "$(zoxide init zsh)"
Then you can use z
to change directories.
If you want to use cd
as an alias to z
, don't add alias, cause this will cause some issue. Just add a flag on zoxide init script like bellow:
eval "$(zoxide init zsh --cmd cd)"