How could I bind to last (most recent) session? The obvious last-session
leads to an "unknown command" error.
bind-key z last-session
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityDon't know about how to bind to the Eject key (it's too far from the home keys anyway!) but this will do the trick:
bind-key -n z switch-client -l
z
to this action even without the tmux prefix? I'd prefer bind-key z switch-client -l
so it's easier to type z
into a terminal when it's needed.
Nov 21, 2018 at 22:18
z
into the terminal.
In recent versions of tmux (e.g. 2.6) the key Prefix
-L
is already bound to the command switch-client -l
which as user47464 pointed out is probably what you want.
You can check your bindings with Prefix
-?
:
...
bind-key -T prefix L switch-client -l
...