Smart tmux session manager
Sesh is a CLI that helps you create and manage tmux sessions quickly and easily using zoxide.
sesh.toml[!NOTE] ⭐ If you find sesh useful, please star the repo — it helps the project grow and reach more developers!
[!TIP] Want to see more features and help sesh mature? Consider sponsoring the project to support ongoing development.
To install sesh, run the following homebrew command:
brew install seshTo install sesh, run the following yay command:
yay -S sesh-binSesh is available from the buckaroogeek/Tmux_sesh Copr repository (Fedora and EPEL 10):
sudo dnf copr enable buckaroogeek/Tmux_sesh
sudo dnf install tmux-seshAlternatively, you can install Sesh using Go's go install command:
go install github.com/joshmedeski/sesh/v2@latestThis will download and install the latest version of Sesh. Make sure that your Go environment is properly set up.
CondaTo install sesh, run one of the following commands, depending on your setup:
# Replace with mamba/micromamba if required
conda -c conda-forge install seshpixi global install seshSee the nix package directory for instructions on how to install sesh through the nix platform.
Note: Do you want this on another package manager? Create an issue and let me know!
Sesh supports shell completion (tab completion) for Bash, Zsh, Fish, and PowerShell. This helps you discover commands, flags, and arguments by pressing the Tab key.
Bash# Generate completion script
sesh completion bash > sesh-completion.bash
# Install system-wide (recommended)
sudo cp sesh-completion.bash /etc/bash_completion.d/
# Or install user-only
mkdir -p ~/.local/share/bash-completion/completions
cp sesh-completion.bash ~/.local/share/bash-completion/completions/sesh
# Reload your shell
source ~/.bashrc# Generate completion script
sesh completion zsh > _sesh
# Install system-wide (recommended)
sudo mkdir -p /usr/local/share/zsh/site-functions
sudo cp _sesh /usr/local/share/zsh/site-functions/
# Or install user-only
mkdir -p ~/.zsh/completions
cp _sesh ~/.zsh/completions/
echo 'fpath=(~/.zsh/completions $fpath)' >> ~/.zshrc
echo 'autoload -U compinit && compinit' >> ~/.zshrc
# Reload your shell
source ~/.zshrc# Generate and install completion
sesh completion fish > ~/.config/fish/completions/sesh.fish
# Reload fish configuration
source ~/.config/fish/config.fish# Generate completion script
sesh completion powershell > sesh.ps1
# Create PowerShell profile directory if it doesn't exist
mkdir -p (Split-Path $PROFILE)
# Add to PowerShell profile
Add-Content $PROFILE ". /path/to/sesh.ps1"
# Reload PowerShell
& $PROFILEAfter setting up completion, you can press Tab while typing sesh to see available commands, flags, and arguments.
The sesh companion extension for Raycast makes it easy to use sesh outside of the terminal.
Here are limitations to keep in mind:
For Linux users using Ulauncher there are two extensions to use sesh outside the terminal:
Here are limitations to keep in mind for Sesh Session Manager:
Create an action directly on $XDG_CONFIG_HOME/config.toml
[[plugins]]
name = "sesh"
prefix = ";s "
src_once = "sesh list -d -c -t -T"
cmd = "sesh connect --switch %RESULT%"
keep_sort = false
recalculate_score = true
show_icon_when_single = true
switcher_only = trueset ssession $(sesh l -t -T -d -H | walker -d -f -k -p "Sesh sessions"); sesh cn --switch $ssession
ssession=$(sesh l -t -T -d -H | walker -d -f -k -p "Sesh sessions"); sesh cn --switch $ssession
Sesh ships an agent skill that teaches coding agents to start work through sesh instead of shelling out to tmux new-session, tmux new-window, and tmux send-keys. An agent that has it will pick a session or a window depending on whether the work belongs to something already open, resolve names and directories across tmux, zoxide, config, and tmuxinator, reuse what's already running instead of duplicating it, and leave you where you are when the work is a background step.
Install it with the skills CLI:
# globally, for every project
npx skills add joshmedeski/sesh -g
# or into the current project only
npx skills add joshmedeski/seshIt works with Claude Code, Codex, Cursor, OpenCode, and dozens of other agents — skills add will ask which ones to install to, or take -a claude-code to pick.
The skill lives at skills/sesh/SKILL.md and is versioned with the CLI, so npx skills update sesh picks up changes. To install it by hand instead, copy or symlink that file to ~/.claude/skills/sesh/SKILL.md (or your agent's equivalent skills directory).
tmux is a powerful terminal multiplexer that allows you to create and manage multiple terminal sessions. Sesh is designed to make managing tmux sessions easier.
zoxide is a blazing fast alternative to cd that tracks your most used directories. Sesh uses zoxide to manage your projects. You'll have to set up zoxide first, but once you do, you can use it to quickly jump to your most used directories.
Once tmux and zoxide are setup, sesh list will list all your tmux sessions and zoxide results, and sesh connect {session} will connect to a session (automatically creating it if it doesn't exist yet). It is best used by integrating it into your shell and tmux.
The easiest way to integrate sesh into your workflow is to use fzf. You can use it to select a session to connect to:
sesh connect $(sesh list | fzf)In order to integrate with tmux, you can add a binding to your tmux config (tmux.conf). For example, the following will bind ctrl-a T to open a fzf prompt as a tmux popup (using fzf-tmux) and using different commands to list active sessions (sesh list -t), configured sessions (sesh list -c), zoxide directories (sesh list -z), and find directories (fd...).
…You can customize this however you want, see man fzf for more info on the different options.
To continuously refresh previews of active tmux sessions, add --watch to the preview command:
--preview 'sesh preview --watch {}'Watch mode polls only active tmux sessions; directory and configured-session previews still render once. The default interval is 500 milliseconds and can be changed with --interval 100ms.
If you prefer to use television instead of fzf, you can add a binding to your tmux config that opens the sesh channel in a tmux popup.
bind-key "T" display-popup -E -w 80% -h 70% -d '#{pane_current_path}' -T 'Sesh' tv seshUse Ctrl-s to cycle through the sources, and Ctrl-d to kill the highlighted session.
sesh window (alias w) lets you list, switch to, and create tmux windows within a session — similar to how sesh list and sesh connect work for sessions. It's a group of subcommands:
sesh window list # list the windows of a session
sesh window connect # select a window, creating it if it doesn't existsesh window list # the session you're attached to
sesh window list -t work # another session
sesh window list -j # as jsonsesh window connect editorIf a window named editor exists in the target session, sesh selects it. If it doesn't, sesh creates it.
sesh window connect ~/projects/my-appA directory arg
No open issues yet, or sync has not completed.