tmux Configuration and Customization/Show session name on the left

Customize the left side of the status line.

Section: Status bar and appearance

Show session name on the left

tmux
tmux
set -g status-left "#[bold]#S "
Explanation

Formats the current session name using tmux format strings.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Status bar and appearance
Move status bar to top
Place the tmux status line above panes.
OpenIn sheettmuxsame section
Show host and time on the right
Add useful runtime context to the status line.
OpenIn sheettmuxsame section
Show pane titles
Display pane border status lines.
OpenIn sheettmuxsame section
Change prefix to Ctrl-a
Replace the default prefix with a screen-style prefix.
OpenIn sheettmux1 tag match
Renumber windows automatically
Keep window numbers compact after closing windows.
OpenIn sheettmux1 tag match
Enable mouse support
Use mouse selection and pane/window switching.
OpenIn sheettmux1 tag match