Yes, you can use the move-window command:
move-window [-d] [-s src-window] [-t dst-window]
(alias: movew)
This is similar to link-window, except the window at src-window is moved to dst-window.
where src-window and dst-window have the form: session:window.pane (session and window can be either name or id).
So, supposing you have an 'chat' session with an 'irc' window and want to move it to the 'other_session' session you can do (in the tmux prompt):
move-window -s chat:irc -t other_session
If you are already in the chat:irc window you don't need to specify the source so
move-window -t other_session:
will do it.
In the same way, from the 'other_session' session you don't need to specify the target.
movew -d irc:irc_window
If you haven't named you windows/sessions, you have to use their ids.
Here are the relevant settings:
pane-active-border-bg colour
pane-active-border-fg colour
Set the pane border colour for the currently active pane.
So, try adding something like this to your ~/.tmux.conf
:
set-option -g pane-active-border-fg blue
That will set a blue border around the active pane. The pane-active-border-bg
option can be used for a more visible solution, as well.
Best Answer
As you know,
C-b
is the default prefix intmux
.C-b C-b
is used to send an actualC-b
character to the terminal. If you switch the prefix toC-a
, you just need to rebind some keys to update which one sends thesend-prefix
command.For your
.tmux.conf
: