Search code examples
keyboard-shortcutstmux

How to select session M-a in tmux using keyboard


In tmux I have multiple sessions running. To switch sessions, I hit my tmux escape sequence and then the s key. The session list appears:

tmux session list

Now I can hit the key 4, for example, if I want to go to session blacklist.

I want to go to session g-orchestrator. Without using the arrow keys, what key combination can I hit to enter that session?


Solution

  • M-a means "Meta-a", which is usually Alt-a in most terminal programs (in Apple's Terminal.app you must enable the app preference "Use option as Meta key" before this will work). So, in this case, the key combination Alt-a will take you to that session directly. Additional sessions will be reachable via Alt-b, Alt-c, Alt-d, etc.