tmux “last-session” binding
up vote
7
down vote
favorite
How could I bind to last (most recent) session? The obvious last-session
leads to an "unknown command" error.
bind-key z last-session
keyboard-shortcuts tmux
add a comment |
up vote
7
down vote
favorite
How could I bind to last (most recent) session? The obvious last-session
leads to an "unknown command" error.
bind-key z last-session
keyboard-shortcuts tmux
add a comment |
up vote
7
down vote
favorite
up vote
7
down vote
favorite
How could I bind to last (most recent) session? The obvious last-session
leads to an "unknown command" error.
bind-key z last-session
keyboard-shortcuts tmux
How could I bind to last (most recent) session? The obvious last-session
leads to an "unknown command" error.
bind-key z last-session
keyboard-shortcuts tmux
keyboard-shortcuts tmux
asked Sep 18 '13 at 10:14
mahemoff
373313
373313
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
13
down vote
accepted
Don'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
Worked for me, thanks.
– mahemoff
Sep 19 '13 at 1:12
Doesn't this bindz
to this action even without the tmux prefix? I'd preferbind-key z switch-client -l
so it's easier to typez
into a terminal when it's needed.
– davidvandebunte
Nov 21 at 22:18
add a comment |
up vote
1
down vote
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
...
New contributor
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
13
down vote
accepted
Don'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
Worked for me, thanks.
– mahemoff
Sep 19 '13 at 1:12
Doesn't this bindz
to this action even without the tmux prefix? I'd preferbind-key z switch-client -l
so it's easier to typez
into a terminal when it's needed.
– davidvandebunte
Nov 21 at 22:18
add a comment |
up vote
13
down vote
accepted
Don'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
Worked for me, thanks.
– mahemoff
Sep 19 '13 at 1:12
Doesn't this bindz
to this action even without the tmux prefix? I'd preferbind-key z switch-client -l
so it's easier to typez
into a terminal when it's needed.
– davidvandebunte
Nov 21 at 22:18
add a comment |
up vote
13
down vote
accepted
up vote
13
down vote
accepted
Don'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
Don'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
edited Sep 19 '13 at 1:28
jasonwryan
48.6k14133182
48.6k14133182
answered Sep 19 '13 at 1:01
user47464
Worked for me, thanks.
– mahemoff
Sep 19 '13 at 1:12
Doesn't this bindz
to this action even without the tmux prefix? I'd preferbind-key z switch-client -l
so it's easier to typez
into a terminal when it's needed.
– davidvandebunte
Nov 21 at 22:18
add a comment |
Worked for me, thanks.
– mahemoff
Sep 19 '13 at 1:12
Doesn't this bindz
to this action even without the tmux prefix? I'd preferbind-key z switch-client -l
so it's easier to typez
into a terminal when it's needed.
– davidvandebunte
Nov 21 at 22:18
Worked for me, thanks.
– mahemoff
Sep 19 '13 at 1:12
Worked for me, thanks.
– mahemoff
Sep 19 '13 at 1:12
Doesn't this bind
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.– davidvandebunte
Nov 21 at 22:18
Doesn't this bind
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.– davidvandebunte
Nov 21 at 22:18
add a comment |
up vote
1
down vote
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
...
New contributor
add a comment |
up vote
1
down vote
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
...
New contributor
add a comment |
up vote
1
down vote
up vote
1
down vote
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
...
New contributor
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
...
New contributor
New contributor
answered Nov 22 at 18:29
davidvandebunte
1111
1111
New contributor
New contributor
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f91222%2ftmux-last-session-binding%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown