Simple BASH bookmarks
# pg-up/down autocompletion
# https://superuser.com/questions/171999/smart-tab-completion-for-directories
bind '"\e[6~": menu-complete'
bind '"\e[5~": menu-complete-backward'
Create ~/.bookmarks
and symlink folders inside it. I name mine starting with @
e.g. ln -s /usr/local/src @src
Then you can g and go to the folder.
Inspired from:
- https://threkk.medium.com/how-to-use-bookmarks-in-bash-zsh-6b8074e40774
- https://twitter.com/mattn_jp/status/1434192554036137995
Another similar idea here https://medium.com/@marko.luksa/linux-osx-shell-trick-create-bookmarks-so-you-can-cd-directly-into-the-dirs-you-use-regularly-64003051211f