A terminal UI application for saving and recalling shell commands, built with Bubble Tea.
- Save commands - Browse shell history and save with Ctrl+A
- Fuzzy search - Quickly find saved commands with real-time filtering
- Smart sorting - Commands sorted by usage frequency
- Interactive UI - Navigate with arrow keys, select with Enter
brew install itcaat/tap/cli-stashgo install github.com/itcaat/cli-stash@latestgit clone https://github.com/itcaat/cli-stash.git
cd cli-stash
go build -o cli-stash .
sudo mv cli-stash /usr/local/bin/cli-stashThis opens an interactive UI where you can:
- Type to filter commands
- Use ↑/↓ to navigate
- Press Enter to select (command is inserted into terminal)
- Press Ctrl+A to add from shell history
- Press Ctrl+D to delete a command
- Press Esc to cancel
Press Ctrl+A in the main view to browse your shell history. Type to filter, then press Enter to save the selected command.
cli-stash listWhen you select a command, it's automatically inserted into your terminal prompt. Just press Enter to execute it, or edit it first.
Commands are sorted by usage frequency - most used commands appear first.
| Key | Action |
|---|---|
| ↑ / ↓ | Navigate |
| Enter | Select/Save |
| Ctrl+A | Browse shell history |
| Ctrl+E | Edit command |
| Ctrl+D | Delete command |
| Esc | Cancel / Back |
Commands are stored in ~/.stash/commands.json.
MIT
