tmux-attach
v0.1.6
Published
A CLI to quickly choose and enter tmux sessions
Readme
tmux-attach
A CLI tool that helps you quickly choose and enter tmux sessions.

Features
- Smart mode detection: No sessions? Launches tmux directly. Sessions exist? Shows a clean picker.
- Fast session creation: "New session" is always first, with the name prefilled from your current directory.
- Clean TUI: Centered, spacious fullscreen picker with a custom ASCII title optimized for quick decisions.
- Accurate environment detection: Blocks execution in an active tmux client, but allows terminals that only inherit tmux-related environment variables.
Installation
npm install -g tmux-attachThis installs both tmux-attach and the shorter ta alias.
Or try it once with npx:
npx tmux-attachUsage
Just run:
tmux-attachRun it from a regular shell or a tmux-backed terminal that is not exposing an active tmux client. If you are already inside an interactive tmux session, tmux-attach exits immediately.
Or use the short alias:
taKeyboard Navigation
↑/↓orj/k- Navigate between optionsEnter- Select highlighted optionEscorq- Exit without attaching
Creating a New Session
- Select "New session" (it's always first)
- Edit the prefilled name (defaults to current directory name)
- Press
Enterto create
Requirements
- Node.js 20+
- tmux installed
- ANSI-compatible terminal
License
MIT
