My implementation of bookmarks for the shell.
Designed to goto working directories quickly and reduce cognitive load of remembering bookmark names.
- Please clone with
git clone git@github.com:Emceelamb/shell-bookmarks.git --recursive
- Please add
source <yourScriptsDirectory>/shell-bookmarks.sh
to your.bashrc
file - or
source <yourScriptsDirectory/no_color_shell-bashmarks.sh
if your terminal doesn't support ANSI color codes.
bmk s
- Saves the current location to your bookmarks
bmk l
- Lists bookmarked location
bmk g
- Go to to bookmarked location
bmk d
- Deletes bookmarked location
bmk clear
- Deletes all bookmarks
Extras:
bmk <bookmark number>
- Go to bookmarked location if exists
bmk <invalid argument>
- Lists valid commands
bmk (no args)
- Defaults to list bookmarks
Bookmarks are saved in $HOME/.shellbookmarks
Loosely inspired by huyng/bashmarks
Curses library by metal3d
hi