A slick multi-pane terminal setup that auto-reattaches tmux sessions across restarts. Works on macOS, Linux, and Windows (via WSL).
- Auto-reattach: Opens Ghostty → automatically grabs the oldest unattached tmux session
- Fresh grid layout: If no sessions exist, creates an 8-pane grid (4 Code Puppy panes + 4 scratch panes)
- Platform-native keybinds: ⌘+D on macOS, Ctrl+D on Linux/Windows
- Auto-install dependencies: Installs tmux and Ghostty if missing
- Kanagawa Wave theme: Beautiful transparency and colors
- Session persistence: Sessions survive terminal closes (but not reboots — tmux limitation)
curl -fsSL https://raw.githubusercontent.com/Nate0-1999/ghostty_tmux_agent_setup/main/ghostty-tmux-setup.sh | bashOr clone and run:
git clone https://github.com/Nate0-1999/ghostty_tmux_agent_setup.git
cd ghostty_tmux_agent_setup
./ghostty-tmux-setup.sh| Platform | tmux Install | Ghostty Install | Clipboard |
|---|---|---|---|
| macOS | brew install tmux |
brew install --cask ghostty |
pbcopy |
| Linux | apt/dnf/pacman | snap (or manual) | xclip |
| WSL | apt | winget (Windows side) | clip.exe |
WSL Note: tmux runs in WSL, Ghostty runs on Windows and connects to WSL.
| Action | macOS | Linux/Windows |
|---|---|---|
| Split right | ⌘+D | Ctrl+D |
| Split down | ⌘+Shift+D | Ctrl+Shift+D |
| Close pane | ⌘+W | Ctrl+W |
| Navigate panes | ⌘+Alt+Arrow | Ctrl+Alt+Arrow |
| Resize panes | ⌘+Ctrl+Arrow | Ctrl+Ctrl+Arrow |
| Cycle panes | ⌘+[ / ⌘+] | Ctrl+[ / Ctrl+] |
| Zoom pane | ⌘+Shift+Enter | Ctrl+Shift+Enter |
| Equalize panes | ⌘+Ctrl+= | Ctrl+Ctrl+= |
| Kill session | ⌘+Shift+Q | Ctrl+Shift+Q |
| Action | Keybind |
|---|---|
| Rename session | Ctrl+A, N |
| Reload config | Ctrl+A, r |
| Split right | Ctrl+A, v |
| Split down | Ctrl+A, s |
| Kill session | Ctrl+A, Q |
tname my-session # Rename current tmux session
tname # Prompts for name| File | Purpose |
|---|---|
~/.tmux.conf |
Tmux config with Kanagawa theme |
~/.local/bin/agents |
Startup script (reattach + grid layout) |
/tname |
Session rename utility |
~/.config/ghostty/config |
Ghostty main config |
~/.config/ghostty/presets/kanagawa-wave-transparent |
Theme preset |
The installer will ask:
- Auto-launch Code Puppy in panes? — If yes, Code Puppy will auto-start in the 4 main panes
This setup is designed for Code Puppy — an AI code agent. When enabled, it auto-launches Code Puppy in 4 panes, giving you a multi-agent development environment.
MIT — do whatever you want with it! 👻