Skip to content

Latest commit

 

History

73 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bookmark

Description

bookmark is a tool that allows you to bookmark and navigate directories via the CLI command line.
This tool is available in bash, fish and powershell shells.

Once installed, bookmark command and bm and bma commands are available.

Note: This tool requires peco

Usage

Bookmark the current directory:

bma # or 'bookmark add'

Go to the selected directory from the bookmark list:

bm

Open the bookmark list and delete the selected directory:

bookmark remove

Delete non-existent directories from the database:

bookmark refresh

Install & Setup

Currently binaries are released for Windows (amd64) and Linux (amd64, arm64).

Binaries for each platform are available from the release page.
Place the executable in your shell's $PATHed directory.

The following script must be added to the shell configuration file.

bash

Add the following to ~/.bashrc

eval "$(bookmark init bash)"

fish

Add the following to ~/.config/fish/config.fish

bookmark init fish | source

powershell

Add the following to your $PROFILE

Invoke-Expression (& {
    (bookmark init powershell | Out-String)
})

Database

This tool uses a SQLite database. The database is created in the bookmark directory at the following location:

  • %LocalAppData% (Windows)
  • $HOME/.cache (Linux)

The location of the path can be checked with bookmark status

If you want to delete the database completely, please manually delete bookmark directory.

Lisence

The source code license for this repository is MIT.
Feel free to fork it, as it is a personal tool.
I am a learner of the program, so please feel free to send me any bug report, feedback or advice you may have 😉

About

Tools for registering and moving directories

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages