Based on https://github.com/huyng/bashmarks
Don't do this anymore cd Documents/work/bolis/backend/core
. Better: cd_ core
- git clone https://github.com/amcamargoc/bashmarks
- cd bashmarks
- make install
- Add source ~/.local/bin/bashmarks.sh from within your ~.bash_profile or ~/.bashrc or ~/.zshrc file
s_ <bookmark_name> - Saves the current directory as "bookmark_name"
cd_ <bookmark_name> - Goes (cd) to the directory associated with "bookmark_name"
p_ <bookmark_name> - Prints the directory associated with "bookmark_name"
rm_ <bookmark_name> - Deletes the bookmark
ls_ - Lists all available bookmarks
$ cd /var/www/
$ s_ webfolder
$ cd /usr/local/lib/
$ s_ locallib
$ ls_
$ cd_ web<tab>
$ cd_ webfolder
All of your directory bookmarks are saved in a file called ".sdirs" in your HOME directory.