How to installHere is where the magic is. Add these 4 lines of code to your bashrc or zshrc file. if [ -d "$HOME/.bookmarks" ]; then export CDPATH=".:$HOME/.bookmarks:/" alias goto="cd -P" fiAdditionally, you need to create the directory in your home folder or wherever it suits you, just remember to update the CDPATH variable above. mkdir ~/.bookmarksHow to useTo add a new bookmark, you just need
![How to use bookmarks in bash/zsh](https://cdn-ak-scissors.b.st-hatena.com/image/square/aea4be49f81c0e615dcc0cc2b1c5d494c83afc6d/height=288;version=1;width=512/https%3A%2F%2Fmiro.medium.com%2Fv2%2Fresize%3Afit%3A974%2F1%2AsqJOhh_EJeLhxy8krAUTDw.png)