Session ManagementPrefix + ( or ) for prev/next, Prefix + s for picker
switch-client
Short form: switchc
Switch the current client to a different session.
Synopsis
bash
tmux switch-client [-ElnprZ] [-c target-client] [-t target-session] [-T key-table]Options
| Flag | Description |
|---|---|
| -l | Switch to last session |
| -n | Switch to next session |
| -p | Switch to previous session |
| -t target-session | Switch to specified session |
Examples
Switch to session 'dev'
bash
tmux switch-client -t devSwitch to next session
bash
tmux switchc -nSwitch to last used session
bash
tmux switchc -lDefault Keybinding
Prefix + ( or ) for prev/next, Prefix + s for picker
Default prefix is Ctrl+b
Pro Tips
- •Use Prefix + s for an interactive session picker
- •Prefix + ( and ) cycle through sessions quickly