tman launches a persistent shell session side-by-side with an interactive navigation HUD in a single terminal window.
The shell tab is a real, fully-featured shell (zsh, bash or fish) — you can run vim, htop, fzf, less, or any other program in it, and tman stays out of the way. Anything you pick in the HUD runs in that shell, without closing tman. Press the toggle key (Ctrl+Space on Linux, Shift+S on macOS) to flip focus between the shell and the HUD.
Legacy
--overlaymode — if you just want the old-style ephemeral popup overlay that exits and runs a command, pass--overlay:
tman --overlay
This is kept for scripts and keybindings that depended on the original behaviour.
curl -fsSL https://raw.githubusercontent.com/IamShreshth/Tman/main/files/install.sh | bashsource ~/.zshrc # zsh (macOS default)
source ~/.bashrc # bash (most Linux distros)tman # persistent session (default)
tman --overlay # legacy ephemeral overlayAutomatically detects Apple Silicon (arm64) or Intel (x86_64), installs tman, signs the binary (codesign) so Gatekeeper never prompts, and configures ~/.zshrc:
curl -fsSL https://raw.githubusercontent.com/IamShreshth/Tman/main/files/install.sh | bash
source ~/.zshrc# 1. Ensure Xcode Command Line Tools & Rust are installed
xcode-select --install 2>/dev/null || true
brew install rust # OR: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# 2. Install tman via Cargo
cargo install --git https://github.com/IamShreshth/Tman.git --locked
# 3. Activate in zsh (zsh is the default shell on macOS):
echo 'eval "$(tman init zsh)"' >> ~/.zshrc && source ~/.zshrcmacOS notes:
pbcopy(clipboard) andopen(Finder / default app opener) work out of the box — no extra packages needed.- Terminal.app users: go to Preferences → Profiles → Keyboard and enable "Use Option as Meta key" so that
Alt-based shortcuts reach tman correctly.- Ctrl+Space sends a null byte on some macOS terminals. If you want to use
ctrl+spaceas the toggle key, configure an alternative in~/.config/tman/config.toml(e.g.toggle_key = "shift+s"ortoggle_key = "alt+space").
The persistent session works on Linux with bash, zsh or fish:
eval "$(tman init bash)" # in ~/.bashrc (installer does this for you)
tman # shell + HUD, toggle focus with Ctrl+SpaceSee docs/linux.md for clipboard and distro notes.
┌──────────────────────────────────────────────────┐
│ tman · NAV ~/projects/myapp ⎇ main +2 ~1 │ ← header
├──────────────────────────────────────────────────│
│ 1 zsh │ ← tab bar
├─────────────────────────┬────────────────────────│
│ │ HUD · FOCUS │
│ real zsh shell │ ▸ Navigate │
│ (vim, htop, fzf…) │ * Bookmarks │
│ │ ↺ History │
│ │ ⌕ Search │
│ │ ⎇ Git │
│ │ ▶ Run │
│ │ ? Explain │
├─────────────────────────┴────────────────────────│
│ ^Space Switch h HUD v Copy Ctrl+T New tab … │ ← footer
└──────────────────────────────────────────────────┘
- Left pane — a real embedded shell (your
$SHELL: zsh, bash or fish) via PTY. Full alt-screen, mouse, truecolor support. - Right pane (HUD) — the interactive nav/action panel.
- Press the toggle key (
Ctrl+Spaceon Linux,Shift+Son macOS) to move keyboard focus between panes. - Press
h(HUD focused) to hide/show the HUD and give the shell the full width; the toggle key brings it back.
| Key | Action |
|---|---|
Ctrl+Space (Linux) / Shift+S (macOS) (default toggle key) |
Switch keyboard focus between Shell and HUD |
h (HUD focus) |
Hide / show the HUD panel |
Ctrl+T |
Open a new shell tab |
Ctrl+W |
Close the current shell tab (asks first if a program is still running in it) |
Ctrl+← / Ctrl+→ |
Switch between shell tabs (NAV focus only) |
| Mouse | Click a tab to switch to it · click a HUD item to select it, click again to open it · scroll the HUD list · click the shell to focus it |
| Key | Action |
|---|---|
| All keys | Forwarded verbatim to the embedded shell |
PageUp / PageDown |
Scroll the shell's scrollback buffer (at prompt only) |
| Key | Context | Action |
|---|---|---|
↑ / ↓ or j / k |
Navigation | Move cursor |
Enter |
Any view | Execute selected action / cd into folder |
→ |
File browser | Open highlighted directory |
← / Backspace |
Submenus | Go to parent directory / previous view |
b |
Menu / Files | Bookmark current or highlighted directory |
d or x |
Bookmarks | Delete highlighted bookmark |
Space |
Git changed files | Stage / unstage file |
Q |
File browser | cd shell into browsed directory |
Tab |
Browser / Runners | Open file action menu |
/ |
Lists | Fuzzy-search filter |
. |
File browser | Toggle hidden dotfiles |
m |
Submenus | Return to main menu |
C |
Any (NAV) | cd shell to the HUD's current directory |
v |
Any (NAV) | Enter copy mode (select & yank lines from shell) |
Esc |
Any view | Clear search / close modal / go back one level; at the main menu, focus the shell (never quits the session) |
Ctrl+C |
Any view | Focus the shell (does not quit, so running programs survive) |
q / Ctrl+D |
Any view | Quit tman (asks first if a tab is still running something). Your terminal ends up in the embedded shell's folder |
Man pages are thorough but hard to read. Menu → Explain gives you the short version:
- Type a command name (
tar,chmod,rsync,systemctl, …) to see what it does in everyday words plus its most common uses. Enterlists the examples;Enteron one puts it in your shell's prompt for editing. Nothing runs until you press Enter in the shell.- Around 60 everyday commands are built in (ls, grep, find, tar, chmod, ssh, git, dnf, apt, systemctl, …). For anything else, tman shows
tldrif it's installed, otherwise the one-linewhatissummary, and offers--helpor the fullmanpage.
| Key | Action |
|---|---|
↑ / ↓ |
Move cursor line |
v |
Set anchor (start of selection) |
y |
Copy selected lines to the clipboard (pbcopy, wl-copy, xclip or xsel) |
PageUp / PageDown |
Scroll the shell's scrollback buffer |
Esc / q |
Exit copy mode |
macOS Ctrl+Space note: macOS binds
Ctrl+Spaceto "switch input source", so the macOS default staysShift+S. Note thatShift+Sthen can't be typed as a capitalSin the shell; to avoid that, disable the macOS shortcut and settoggle_key = "ctrl+space", or pick"alt+space"/"f12".Terminal.app Option/Alt note: In Preferences → Profiles → Keyboard, enable "Use Option as Meta key" to send
Alt+…sequences that tman and embedded CLI tools expect.
The --overlay flag runs tman in the original single-panel overlay style — it takes over the terminal, you pick an action, and tman exits cleanly returning the command to your shell to execute:
tman --overlayThis mode works on any POSIX shell (bash, fish, zsh) and any OS where the binary runs. Use it for:
- Shell keybindings that need a quick popup (e.g. bind tman to a hotkey in your shell config)
- Shells other than zsh, bash or fish
- Scripts that need a one-shot action picker
Config file location: ~/.config/tman/config.toml
Print the path: tman config-path
Print defaults: tman default-config
bookmarks = []
[ui]
animations = true # slide-in context panel
preview = true # preview pane inside HUD
show_hidden = false
accent = "cyan" # cyan|blue|green|magenta|yellow|red|orange|purple|pink|peach|teal|white|#hex
[shell]
editor = "" # empty = $VISUAL / $EDITOR / vi
# toggle_key = "ctrl+space" # switch between shell and HUD focus
# default: "ctrl+space" (Linux), "shift+s" (macOS)
# examples: "alt+space" | "ctrl+backslash" | "f12"
cd_on_quit = true # quitting tman leaves your terminal in the embedded shell's folder
[safety]
confirm_destructive = true- Persistent shell session: a real zsh/bash/fish process runs inside tman; your history, aliases, and functions are all there, and HUD actions run in it without exiting.
- Full alt-screen support:
vim,htop,fzf,less, and any TUI app works correctly in the shell pane. - Truecolor & 256-colour fallback: tman detects
COLORTERM=truecolorand forwards it to the embedded shell; falls back to xterm-256 palette automatically. - Unicode width-aware rendering: wide CJK characters, emoji, and combining marks display correctly.
- System telemetry: battery, CPU load, memory, disk, and Git status in the HUD context panel.
- Workflow discovery: auto-detects Rust, Python, Node, Go, Docker, Make, CMake, Just projects and surfaces their runnable targets.
- Navigation & actions: fuzzy directory search, bookmark pinning, clipboard export (
pbcopy/wl-copy/xclip/xsel), and desktop app opening (open/xdg-open). - Robustness: panic hook + drop guard restore the terminal on every exit path; dead PTY is detected and reported cleanly.
| Component | Requirement |
|---|---|
| Operating System | macOS (Apple Silicon arm64 & Intel x86_64), Linux (x86_64 & aarch64) |
| Shell | zsh 5.0+, bash 4.4+, or fish 3.0+ (other shells: --overlay) |
| Terminal emulator | Any that supports xterm-256color; truecolor optional |
| Build Toolchain | Rust 1.70+ and Cargo (only when building from source) |
The shell hook wires up:
- Automatic CWD tracking (HUD follows
cdcommands instantly) - Prompt-ready detection (so command dispatch waits for the shell)
- Command-finished notification (HUD refreshes git/file state after each command)
- Command-line reporting (commands you run in tman's shell show up in History right away)
For bash and fish, tman loads these hooks into its own shells automatically (after your normal startup files), so they work even without the line below. The line is still what makes the tman command itself cd your terminal when you quit. For zsh, add the line to get the hooks.
eval "$(tman init zsh)" # ~/.zshrc
eval "$(tman init bash)" # ~/.bashrc
tman init fish | source # ~/.config/fish/config.fishcurl -fsSL https://raw.githubusercontent.com/IamShreshth/Tman/main/files/install.sh | bash
source ~/.zshrc # or: source ~/.bashrccargo install --git https://github.com/IamShreshth/Tman.git --locked
echo 'eval "$(tman init zsh)"' >> ~/.zshrc && source ~/.zshrcgit clone https://github.com/IamShreshth/Tman.git
cd Tman
./files/install.shrm -f ~/.local/bin/tman ~/.cargo/bin/tman
rm -rf ~/.config/tmanRemove the eval "$(tman init …)" line from your ~/.zshrc / ~/.bashrc (or the tman init fish line from your fish config).
See CONTRIBUTING.md for development setup and pull request guidelines.
Licensed under the MIT License.
