Tbmk
A commands bookmark for shells 🔖
Install / Use
/learn @linhx/TbmkREADME
Tbmk - Terminal bookmarker
A commands bookmark for shells

Worked on
- Linux: bash, zsh, fish
- Mac: zsh
Features
- Bookmark manager.
- Command placeholder. Allow to input value.
How to use
- Press
Ctrl+Tin the shell to create an item - Placeholder syntax:
{{name|default value}}. name must be incamelCase. (Available since v1.1.0) - Press
Tab/Shift+Tabto switch between placeholders. (Available since v1.1.0) - Escaping Placeholder:
\{{name}}. (Available since v1.1.0) - Press
Ctrl+Spacein the shell to search for items. You can type keywords before pressCtrl+Space- Press
Tab/Shift+Tab, Down/Upto select item.
- Press
- In the result screen, select an item then press
Ctrl + Dto 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
- Download built file on release page
- For MacOs: please use v1.0.2, due to the issue https://github.com/linhx/tbmk/issues/24
- Extract the file. e.g. /somepath/tbmk
- Run
cd /somepath/tbmk - Run
./install(don't install by execute/absolute-path/install), it will appends keybinding to~/.bashrc,~/.zshand~/.config/fish/config.fish - Restart your shell or reload config file:
source ~/.bashrc # bashsource ~/.zshrc # zshsource ~/.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 .
