Bookmark for Bash environment
Support add, remove, view operation, and auto completion feature
- copy bm.bash to $HOME directory
cp bm.bash ~/bm.bash
- Rename bm.bash to .bm.bash as a hidden file
mv ~/bm.bash ~/.bm.bash
- Add below code to the end of the .bashrc file
[ -f ~/.bm.bash ] && source .bm.bash
- Run
source ~/.bashrc
or reboot bash terminal
Note: the script will automatically create .bms file in the home directory
- bm : Add current directory to the bookmark
- bj : Jump to the bookmark with the name
- bl: List all the bookmarks
- bd : Remove the bookmark with the name