Skip to main content
Back to Commands
Session ManagementPrefix + $

rename-session

Short form: rename

Rename the session specified by -t, or the current session if -t is not given.

Synopsis

bash
tmux rename-session [-t target-session] new-name

Options

FlagDescription
-t target-sessionSpecify which session to rename

Examples

Rename current session to 'work'

bash
tmux rename-session work

Rename session 0 to 'development'

bash
tmux rename -t 0 development

Rename using keybinding

bash
Prefix + $ (then type new name)

Default Keybinding

Prefix + $

Default prefix is Ctrl+b

Pro Tips

  • Good session names make it easier to switch between projects
  • Use short, descriptive names