Utility to bookmark directories, avoiding the hassle of remembering/typing long path names to reach them.
First you need to bookmark a directory using the bookmark command:
bookmark /path/to/directory/to/bookmark @bookmark-name
# Tip: use `pwd` to bookmark the current working directory
bookmark `pwd` @bookmark-nameThen use warp command to quickly cd to the bookmarked directory:
warp @bookmark-nameFinally you can use unbookmark command to remove one or multiple bookmarks:
unbookmark @bookmark-name @other-bookmark-nameMoreover, you can also rename an existing bookmark using rnbookmark command:
rnbookmark @bookmark-name @new-bookmark-nameChoose the installer according to your shell. The changes will be loaded from the next terminal session you will open.
If you are using git bash, you need to first install windows-shortcut-util
Just pull the git repository to have the latest project version.
Remove $HOME/.shell-bookmarks directory.
For bash install remove the following lines from your .bashrc:
# shell bookmarks
if [ -f "/path/to/bash-bookmarks.sh" ]; then
source "/path/to/shell-bookmarks.sh"
fiFor zsh install remove the following lines from your .zshrc:
# shell bookmarks
autoload bashcompinit && bashcompinit
emulate sh -c "/path/to/shell-bookmarks.sh"If anything goes wrong, you can find your bookmarks inside $HOME/.shell-bookmarks directory (they are actually just symbolic links to your directories) and manually delete them. And remember to file an issue!