sshh icon indicating copy to clipboard operation
sshh copied to clipboard

FYI this can be simplified tremendously

Open pschmitt opened this issue 5 years ago • 1 comments

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"

pschmitt avatar May 29 '20 10:05 pschmitt

I made a TPM plugin for this: https://github.com/pschmitt/tmux-split-ssh

pschmitt avatar May 30 '20 09:05 pschmitt