diff options
Diffstat (limited to 'tmux/.local')
-rwxr-xr-x | tmux/.local/bin/tmux-sshr | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tmux/.local/bin/tmux-sshr b/tmux/.local/bin/tmux-sshr index 42618ad..3c75b8c 100755 --- a/tmux/.local/bin/tmux-sshr +++ b/tmux/.local/bin/tmux-sshr @@ -35,6 +35,10 @@ else "$target" 'tmux -L ssh start-server \; display -p "#{socket_path}"' ) + if [ -z "$tmux_local_sock" ] || [ -z "$tmux_remote_sock" ]; then + exit 1 + fi + tmux -L ssh new-session -ds "$target" \ ssh -t \ -o "ControlMaster=auto" \ |