Skip to content

A CLI that makes it easy to bookmark your favorite terminal commands.

License

Notifications You must be signed in to change notification settings

henrikac/bookmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI Bookmark

A bookmarker for your terminal.

Installation

Run go install github.com/henrikac/bookmark@latest.

Usage

Add bookmark

$ bookmark add speak echo "hello world"

This will bookmark speak with the command echo hello world.

Notes:

  • if you want to use quotes you need to escape them.
  • if your command contains flags e.g. -h you need to add -- between the bookmark name and the command
$ bookmark add ls -- ls -al
  • if your command contains e.g. | or > you need to wrap the entire command in quotes
$ bookmark add hello "echo \"Hello world\" > /some/path/hello.txt"

List bookmarks

$ bookmark list

Lists all your saved bookmarks.

Search bookmark

$ bookmark search <bookmark>

Search for a specific <bookmark> and return the command if it exists.

Execute bookmark

$ bookmark exec <bookmark>

This will execute the command saved in <bookmark>.

Remove bookmark

$ bookmark remove <bookmark>

This will remove <bookmark> if it exists.

List configurations

$ bookmark config list

THis will list all the configurations.

Update configuration

$ bookmark config set storePath ~/.config/bookmark/

This will set the storePath to ~/.config/bookmark/bookmarks.json. If the last part of the given path is a folder like in the example above then it MUST end with a /.

About

A CLI that makes it easy to bookmark your favorite terminal commands.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages