LinuxCommandLibrary

bashmarks

Directory bookmarking for the shell

TLDR

Save current directory bookmark

$ s [bookmark-name]
copy
Go to bookmark
$ g [bookmark-name]
copy
List bookmarks
$ l
copy
Delete bookmark
$ d [bookmark-name]
copy

SYNOPSIS

bashmarks directory bookmarking functions

DESCRIPTION

bashmarks is a bash script that provides directory bookmarking functionality. It allows you to save frequently-used directory paths with short names and jump to them quickly.
The tool adds convenient shell functions for managing and navigating to bookmarked directories.

FUNCTIONS

s name

Save current directory as bookmark
g name
Go to bookmarked directory
l
List all bookmarks
d name
Delete bookmark
p name
Print bookmark path

FEATURES

- Simple bookmark management
- Tab completion for bookmarks
- Persistent storage
- Integration with bash/zsh

WORKFLOW

$ # Save bookmark
cd /var/log/apache2
s apache

# Jump to bookmark
g apache

# List all
l

# Remove
d apache
copy

CAVEATS

Requires sourcing in shell config. Bookmark names must be simple (no spaces or special chars). Different from z or autojump which use frequency. Must be installed separately.

HISTORY

bashmarks was created by Huy Nguyen around 2010 to provide simple directory bookmarking for bash users.

SEE ALSO

z(1), autojump(1), fasd(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community