I wanted to way to navigate the terminal quickly rather than manually going up or down directories to get to the correct directory I need.
The library I will use is zoxide.
How to setup
Run the following to install zoxide.
curl -sSfL https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | sh
Now open the .zshrc file.
nano ~/.zshrc
Add the following to the end of the file.
eval "$(zoxide init zsh)"
Now try the z command to change to a directory.
z ~/Documents
It will store the directory so next time you can use the following command as the folder name will be remembered.
z Document