further fixing tmuxssh

This commit is contained in:
Ville Rantanen
2016-07-19 09:19:30 +03:00
parent 6351c42991
commit bef706c67a

View File

@@ -22,11 +22,12 @@ Arguments: hostnames, or username@hostnames
tmux new-session -d -s ssh$USER$$ "ssh $TMUXSSH_OPTIONS $1" tmux new-session -d -s ssh$USER$$ "ssh $TMUXSSH_OPTIONS $1"
tmux set-window-option -t:0 synchronize-panes on tmux set-window-option -t:0 synchronize-panes on
tmux bind-key m setw synchronize-panes tmux bind-key m setw synchronize-panes
tmux rename-window 'VMS' tmux rename-window 'SSH'
for (( i=2; i<=$#; i++ )) for (( i=2; i<=$#; i++ ))
do tmux split-window -h "ssh $TMUXSSH_OPTIONS ${!i}" do tmux split-window -h "ssh $TMUXSSH_OPTIONS ${!i}"
tmux select-layout main-vertical
done done
tmux select-layout main-vertical
tmux select-pane -t ssh$USER$$:SSH.0
tmux -2 attach-session -t ssh$USER$$ tmux -2 attach-session -t ssh$USER$$