Bashmarks is a shell script that allows you to save and jump to commonly used directories with tab completion. Also works with zsh {#description}
- default directory when using
go - default
$HOME`. - Allows placing commands after the the letter e.g
go webfolder ls
would go the webfolder bookmark then performls
go -
Goes to the previous directory.o command
to open the bookmark in Finder (Mac OS X Only).tab command
to open the bookmark in a new tab (Mac OS X Only).- the
tab command
works with Terminal and ITerm2
- git clone this repo
- make install (or just put bashmarks.sh in your $PATH and source
it
) - source ~/.local/bin/bashmarks.sh from within your ~.bash_profile or ~/.bashrc file
$ cd /var/www/
$ save webfolder
$ cd /usr/local/lib/
$ save locallib
$ bookmarks
webfolder /var/www/
locallib /usr/local/lib/
$ go web<tab>
$ go webfolder # cd to /var/www/
$ o webfolder # Open in Finder if on mac
$ bookmarks locallib
locallib /usr/local/lib/
Set BASHMARKS_ITERM_SESSION
to a session name to change the session that is launched when using tab
in iTerm2 on osx
All of your directory bookmarks are saved in a file called .sdirs
in your $HOME
directory.