# Tmux Sessioner for Raycast

URL: https://www.raycast.com/louishuyng/tmux-sessioner

> Switch, create and kill tmux sessions and windows, search output across all sessions and save sessions with tmux-resurrect.

- Install: raycast://extensions/louishuyng/tmux-sessioner
- Author: [Louis](https://www.raycast.com/louishuyng)
- Installs: 4,045
- Platforms: macOS
- Categories: Developer Tools
- Updated: 2026-11-17
- Source: https://github.com/raycast/extensions/tree/c4e0f79975a011e16032382f2d1263f712f8b43c/extensions/tmux-sessioner/

## Commands

- **Manage Tmux Session**: Manage Tmux Session that user can switch or delete any tmux session from here
- **Change Default Terminal**: Change Default Terminal so that it can be opened with the correct app
- **Create New Session**: Create New Tmux Session
- **Manage Tmux Windows**: Manage Tmux Windows that user can switch or delete any tmux window from here
- **Search Session Output**: Search commands and printed output across the scrollback of all tmux sessions
- **Save Tmux Sessions**: Force tmux-resurrect to save all sessions now (requires the tmux-resurrect plugin; pairs with tmux-continuum)

## README

### Tmux Sessioner

#### Description

This is a extension for raycast to manage tmux sessions.

#### Features

- Switch between sessions 🔄
- Switch between windows 🔄
- Attach to sessions/windows automatically with setup terminal 🖥
- Attach to sessions automatically with setup terminal 🖥
- Open sessions in a new terminal tab or window 🪟
- Create new sessions 🆕
- Bootstrap project sessions: create a folder and run a startup command in one go 🚀
- Delete sessions 🗑
- Kill multiple sessions at once 🧹
- Search commands and output across all sessions' scrollback 🔍
- Save all sessions on demand for tmux-resurrect / continuum 💾
- Rename sessions 📝

#### Saving sessions on demand

The `Save Tmux Sessions` command forces a [tmux-resurrect](https://github.com/tmux-plugins/tmux-resurrect) save immediately — handy when you want to be sure everything is persisted before shutting down, without waiting for [tmux-continuum](https://github.com/tmux-plugins/tmux-continuum)'s next interval. It reads the script path from resurrect's own `@resurrect-save-script-path` option, so there is nothing to configure here, and nudges continuum to back off during the save. **tmux-resurrect must be installed and configured**; if it isn't, the command says so instead of failing.

Serializing concurrent saves is the save script's job, not this command's (resurrect runs it without a cross-process lock). If you auto-save frequently and want to guarantee two saves never overlap, point `@resurrect-save-script-path` at a small wrapper that takes a filesystem mutex (e.g. `mkdir` a lockdir) around the real `save.sh`.

#### Searching session output

`Search Session Output` greps the scrollback of every pane in every session, so you can find that command you ran or error you saw without remembering which session it was in. Matches are grouped by session with surrounding context; press `⏎` to switch there, or open it in a new terminal tab. Tip: raise tmux's `history-limit` (e.g. `set -g history-limit 50000`) to search further back.

#### Bootstrapping project sessions

`Create New Session` can go beyond switching directories:

- **Create New Folder**: creates `<New Session Default Directory>/<name>` and starts the session inside it. Enable it per-launch in the form, or permanently with the *Create New Folder by Default* preference.
- **Startup Command**: any shell line typed into the fresh session (so the session survives when the command exits). Set a default once in the *New Session Startup Command* preference — e.g. `npm run dev`, `claude`, or compose steps like `git init && claude` — and tweak it per-launch when needed.
- The command accepts the session name as an argument, so `Create New Session myproject` from the Raycast root search prefills everything: press `⌘⏎` and you get a new terminal tab, in a new folder, with your startup command already running.
- With the *Open in Terminal After Create* preference enabled, opening the session in a new tab/window becomes the default submit action — plain `⏎` does it all.

#### How to use

1. Install [Raycast](https://raycast.com/) 📦
2. Install [Tmux](https://linuxize.com/post/getting-started-with-tmux/) 📦
3. Install [Extension](https://www.raycast.com/raycast) 📦
4. Open Raycast and type `Tmux Sessioner` to see all commands 📟
5. First time you need to setup your terminal to attach to sessions automatically 🖥
   ![Setup Terminal](https://github.com/raycast/extensions/raw/c4e0f79975a011e16032382f2d1263f712f8b43c/extensions/tmux-sessioner//assets/select-term-app.png)
6. Enjoy Mangaging your sessions 🎉
   ![Manage Session](https://github.com/raycast/extensions/raw/c4e0f79975a011e16032382f2d1263f712f8b43c/extensions/tmux-sessioner//assets/manage-session.png)
7. You can create a new session with type `Create New Session` 🆕
   ![Create Terminal](https://github.com/raycast/extensions/raw/c4e0f79975a011e16032382f2d1263f712f8b43c/extensions/tmux-sessioner//assets/create-new-session.png)

#### TODO

- [ ] Label sessions 🏷
- [ ] Prioritize sessions 📈
- [ ] Allow Creating Session with predefined windows 🖼
- [ ] Create Windows
