Prefix-free pane navigation across nested tmux sessions over SSH. Stop doing mental math calculating the right prefix combination.
Alt + arrow switches focused pane both inside the current tmux and across an SSH boundary
(when the tmux on the other side also has this plugin installed).
The other machine must be accessible by SSH in batch mode (without an
interactive passphrase prompt) for the signaling connection to be established.
An encrypted key works when its passphrase has already been remembered by
ssh-agent.
Install the plugin on both the local and remote hosts.
set -g @plugin klntsky/tmux-seamless-remote
Then press prefix + I to install it. TPM normally binds this to:
run-shell ~/.tmux/plugins/tpm/bindings/install_plugins
The command-line equivalent is:
~/.tmux/plugins/tpm/bin/install_plugins
Clone the repo and source its entrypoint:
run-shell "bash ~/.tmux/plugins/tmux-seamless-remote/tmux-seamless-remote.tmux"
Then reload tmux on both hosts.
To override the keys before loading the plugin:
set -g @seamless-remote-left-key M-h
set -g @seamless-remote-down-key M-j
set -g @seamless-remote-up-key M-k
set -g @seamless-remote-right-key M-l
Bindings are local to each tmux server and technically they may not match (although that defeats the purpose of using this software somewhat).
/proc for
automatic target discovery. The plugin is tested with tmux 3.4 and 3.6.set-titles and set-titles-string options because
the terminal title is its peer-discovery channel.ssh-agent and ~/.ssh/config settings
are honored. Passphrase-protected keys work when already unlocked in the
agent; password and passphrase prompts are never opened by a key binding.See also: ARCHITECTURE.md.
3 commits
Shell
89.9%
Awk
10.1%
Prefix-free pane navigation across nested tmux sessions over SSH. Stop doing mental math calculating the right prefix combination.
Alt + arrow switches focused pane both inside the current tmux and across an SSH boundary
(when the tmux on the other side also has this plugin installed).
The other machine must be accessible by SSH in batch mode (without an
interactive passphrase prompt) for the signaling connection to be established.
An encrypted key works when its passphrase has already been remembered by
ssh-agent.
Install the plugin on both the local and remote hosts.
set -g @plugin klntsky/tmux-seamless-remote
Then press prefix + I to install it. TPM normally binds this to:
run-shell ~/.tmux/plugins/tpm/bindings/install_plugins
The command-line equivalent is:
~/.tmux/plugins/tpm/bin/install_plugins
Clone the repo and source its entrypoint:
run-shell "bash ~/.tmux/plugins/tmux-seamless-remote/tmux-seamless-remote.tmux"
Then reload tmux on both hosts.
To override the keys before loading the plugin:
set -g @seamless-remote-left-key M-h
set -g @seamless-remote-down-key M-j
set -g @seamless-remote-up-key M-k
set -g @seamless-remote-right-key M-l
Bindings are local to each tmux server and technically they may not match (although that defeats the purpose of using this software somewhat).
/proc for
automatic target discovery. The plugin is tested with tmux 3.4 and 3.6.set-titles and set-titles-string options because
the terminal title is its peer-discovery channel.ssh-agent and ~/.ssh/config settings
are honored. Passphrase-protected keys work when already unlocked in the
agent; password and passphrase prompts are never opened by a key binding.See also: ARCHITECTURE.md.
3 commits
Shell
89.9%
Awk
10.1%