8000 GitHub - linhx/tbmk: A commands bookmark for shells 🔖 · GitHub
[go: up one dir, main page]

Skip to content
{"props":{"color_mode":"dark","logged_in":false,"marketing_page":false,"home_path":"/","login_path":"/login?return_to=https%3A%2F%2Fgithub.com%2Flinhx%2Ftbmk","signup_path":"/signup?ref_cta=Sign+up\u0026ref_loc=header+logged+out\u0026ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E\u0026source=header-repo\u0026source_repo=linhx%2Ftbmk","signup_enabled":true,"is_signup_controller":false,"show_search_and_nav":true,"hide_search":false,"private_mode_enabled":false,"should_use_dotcom_links":true,"auth_hydro_click":"{\"event_type\":\"authentication.click\",\"payload\":{\"location_in_page\":\"site header menu\",\"repository_id\":null,\"auth_type\":\"SIGN_UP\",\"originating_url\":\"https://github.com/linhx/tbmk\",\"user_id\":null}}","auth_hydro_click_hmac":"2a6de5218cc04c445c20195a3ff7aee603cd6d7f95972df5f55c4f3e079b5e7a"}}
linhxPublic

About

A commands bookmark for shells 🔖

Topics

Resources

Stars

351 stars

Watchers

3 watching

Forks

Latest commit

 

History

61 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tbmk - Terminal bookmarker

A commands bookmark for shells

demo

Worked on

  • Linux: bash, zsh, fish
  • Mac: zsh

Features

  1. Bookmark manager.
  2. Command placeholder. Allow to input value.

How to use

  • Press Ctrl+T in the shell to create an item
  • Placeholder syntax: {{name|default value}}. name must be in camelCase. (Available since v1.1.0)
  • Press Tab/Shift+Tab to switch between placeholders. (Available since v1.1.0)
  • Escaping Placeholder: \{{name}}. (Available since v1.1.0)
  • Press Ctrl+Space in the shell to search for items. You can type keywords before press Ctrl+Space
    • Press Tab/Shift+Tab, Down/Up to select item.
  • In the result screen, select an item then press Ctrl + D to delete it
  • Override the old one by add new command with the same title

The data are stored in ~/.tbmk. You can backup or edit it directly.

How to install

  1. Download built file on release page
    • For MacOs: please use v1.0.2, due to the issue #24
  2. Extract the file. e.g. /somepath/tbmk
  3. Run cd /somepath/tbmk
  4. Run ./install (don't install by execute /absolute-path/install), it will appends keybinding to ~/.bashrc, ~/.zsh and ~/.config/fish/config.fish
  5. Restart your shell or reload config file:
    • source ~/.bashrc # bash
    • source ~/.zshrc # zsh
    • source ~/.config/fish/config.fish #fish

How to update

Just extract and override the old version's files

Development

Run

APP_ENV=dev go run . save
APP_ENV=dev go run . search

Build

go build .

About

A commands bookmark for shells 🔖

Topics

Resources

Stars

351 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0