(Tmux) Set the name of a session
- Create a new session with customized name:
tmux new -s <SESSION_NAME>
- By default, tmux sessions are assigned increasing non-negative integers as names
- However, unlike how windows have unique, persistent indices, the non-negative integers are NOT indices and are lost after a session is renamed
-
Update existing session name:
<Ctrl-b> + $
, then enter the new name in the prompt below - Attach to a session with updated name:
tmux a[ttach] -t <UPDATED_SESSION_NAME>
References:
Written on March 9, 2021