tmux

How to extend the length of session name in tmux?


When starting a session in tmux like this:

tmux new -s session-name

I get the name display that does not show full name(session-name):

[session-n

How to configure tmux to allow it to show the entire name of the session? At least, extend its length to an acceptable size.


Solution

  • You can set the maximum character length of each status line 'section' with status-<position>-length. So for your particular case, add:

    set -g status-left-length 20 # could be any number
    

    to your .tmux.conf and it will no longer be cut off. If you don't already have a .tmux_conf file (they generally aren't created by default) you can create one in your home directory.