Excellent reference: https://blog.devgenius.io/tmux-an-awesome-terminal-multiplexer-62609c6916bb
-
PREFIX + [
-
then Ctrl-s for forward search or
-
Ctrl-r for reverse search
-
-
tmux set-option -g history-limit 5000 \; new-session
-
PREFIX + ( : Switch the attached client to the previous session.
-
PREFIX + ) : Switch attached client to the next session.
-
PREFIX + s : Select session from a list of sessions for the attached client interactively.
-
Navigate to the target tmux session
-
PREFIX + :move-window -s <session_num>:<window number>
-
Navigate to the pane you want to move, so that it is in focus in the source window
-
Navigate to the target window
-
PREFIX + :move-pane -s <session_num>:<window number> -t <target session_num>:<window number>
-
Show the new SSH_AUTH_SOCK environment variable:
tmux show-env -
Overwrite the env var:
eval SSH_AUTH_SOCK=/tmp/ssh-abcdef/agent.1234