sshh
sshh copied to clipboard
FYI this can be simplified tremendously
With more recent versions of TMUX you can make use of split-window which accepts a command.
Here's what I have right now which provides the same functionality as sshh:
https://gist.github.com/pschmitt/293a9895abe14399b0d8a20cf68dd25c
TLDR: The config part is way tidyer:
bind S run "$TMUX_BIN_HOME/tmux-split-ssh.sh -c #{pane_current_path} -v"
bind | run "$TMUX_BIN_HOME/tmux-split-ssh.sh -c #{pane_current_path} -h"
I made a TPM plugin for this: https://github.com/pschmitt/tmux-split-ssh