screen has a Ctrl-a,Ctrl-a to switch between two latest windows?
How to do it in
To do this in tmux, you do
(that is an 'L'). This assumes you have left Ctrl-B as your activation key.
If you want to use the same keypresses as screen, then add the following to your
The first sets Ctrl-A as your activation key, the second says Ctrl-A after activation should go to the last window.
Paul's answer is correct, but it seems to leave you without a way to type ^A. Normally, if you had not bound the
However, all is not lost:
If you don't remap
If for some reason you don't remap
... which will send a ^B if you type