Overview
The left icon appears on the far left of your tmux status bar. It can display static text, your hostname, the current session name, or any tmux format variable.Basic usage
Set the left icon to any static text or tmux format variable:The content to display in the left icon. Can be static text or tmux format variables.Supports any tmux format variable for dynamic content.
Tmux format variables
You can use any tmux format variable in the left icon. Here are the most commonly used ones:Hostname of local host (fully qualified domain name).Example:
mycomputer.localHostname of local host without domain name.Example:
mycomputerName of the current tmux session.Example:
main, work, devTip: Use tmux rename-session (or create an alias like alias trs='tmux rename-session') to set meaningful session names.Name of the current window.Example:
bash, vim, 1:editorAdvanced format variables
Besides the shorthand format variables like#H, you can use any tmux format variable with the full syntax #{variable_name}. This is equivalent to the shorthand versions:
For a complete list of available format variables, see the tmux manual page.
Icon padding
Control the spacing around the left icon content:The number of spaces to pad around the left icon content.Set to
0 to disable padding.Common use cases
Multiple machines via SSH
Multiple machines via SSH
If you use tmux on multiple machines, display the hostname to know where you are:Or combine it with the session name:
Multiple simultaneous sessions
Multiple simultaneous sessions
When running multiple tmux sessions at once, display the session name:Name your sessions meaningfully:
Static branding
Static branding
Use static text for a consistent look:Or use Unicode/Nerd Font symbols:
Combination formats
Combination formats
Create custom combinations that work for your workflow:
Complete example
Here’s a full configuration for a developer working on multiple machines: mycomputer | work