I thought that in tmux, the list of sessions (<prefix>-s
) is always automatically sorted alphabetically. I seem to remember this being so always. I create my sessions with names specifically taylored to this assumption.
Lately, when I accidentally close a session and recreate it, it appears at the bottom of the list, which breaks muscle memory.
How can I configure tmux (version 3.1b) to sort sessions alphabetically?
Best Answer
Seems like tmux in versions <= 2.9a sorted sessions alphabetically, but starting from 3.1b this behavior changed. You can rebind
<prefix>-s
to whatever you like, in your case adding to ~/.tmux.conf following line should be sufficient:From
man tmux
: