A simple shell tool for bookmarking directories in the filesystem. At the moment it only supports bash. If you want contribute by extending the support to other shells you are very welcome :).
- cargo >= 1.42.1
- rustc >= 1.41.1
# Build
make
# Install
sudo make installYou can download a binary package (deb/rpm) from here.
You can check the man pages with
man cdbcdb [OPTION] [--] [bookmark]
cdb <bookmark>
where <bookmark> is a bookmark name.
-h, --help: Prints help information-l, --list: List all bookmarks-V, --version: Prints version information-a, --add <bookmark> <path>: Adds a directory bookmark with name pointing at-f, --find <pattern>: List all the bookmark names that start with-r, --remove <bookmark>: Removes a directory bookmark with name-s, --show <bookmark>: Outputs where is pointing-u, --update <bookmark> <new_path>: Updates the path pointed by
# Adds a directory bookmark named "projects" pointing to /home/foo/projects path.
cdb --add projects /home/foo/projects
# Updates the path pointed by the bookmark named "projects" from /home/foo/projects
# to /home/bar/projects.
cdb -u projects /home/bar/projects
# Changes the current directory to the one pointed by "projects" bookmark.
cdb projects