A simple CLI command snippet manager. Save long commands with short names and run them instantly.
Linux / macOS (not yet tested — use from source if you run into issues):
curl -fsSL https://raw.githubusercontent.com/aodihis/tet/main/scripts/install.sh | shWindows (PowerShell):
irm https://raw.githubusercontent.com/aodihis/tet/main/scripts/install.ps1 | iexThe scripts download the latest pre-built binary from GitHub Releases and place it in ~/.local/bin (Linux/Mac) or %USERPROFILE%\.local\bin (Windows).
From source (requires Rust):
cargo install --git https://github.com/aodihis/tetRe-run the same install command to get the latest version:
Linux / macOS (not yet tested):
curl -fsSL https://raw.githubusercontent.com/aodihis/tet/main/scripts/install.sh | shWindows (PowerShell):
irm https://raw.githubusercontent.com/aodihis/tet/main/scripts/install.ps1 | iexFrom source:
cargo install --git https://github.com/aodihis/tet --forceInteractive (opens TUI form):
tet save
Non-interactive:
tet save <name> <command...>
tet save -g <group> <name> <command...>
Examples:
tet save ping "ping 8.8.8.8 -n 4"
tet save -g home dns "nslookup google.com 8.8.8.8"
tet <name>
tet <group> <name>
tet list
The list opens a TUI with a live search bar. Type to filter by name, group, or command content. Press Enter on a snippet to run it.
tet delete <name>
tet delete -g <group> <name>
Aliases: tet del, tet rm
tet save-last
Opens the save form with the previous command pre-filled.
Windows (PowerShell): works out of the box — reads your PowerShell history automatically. No setup needed.
bash / zsh: requires a one-time shell hook install so tet knows what your last command was:
tet shell bash >> ~/.bashrc # bash
tet shell zsh >> ~/.zshrc # zshRestart your shell after installing. The hook runs silently in the background and writes your last command to a temp file before each prompt.
Snippets are stored in SQLite at:
- Windows:
%APPDATA%\tet\tet.db - Linux/Mac:
~/.local/share/tet/tet.db
These cannot be used as snippet names:
save, save-last, list, ls, search, find, delete, del, rm, help, run, shell, -
