unique name for tmuxssh
This commit is contained in:
4
tmuxssh
4
tmuxssh
@@ -17,7 +17,7 @@ Arguments: hostnames, or username@hostnames
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
tmux new-session -d -s ssh$USER 'ssh '$1
|
tmux new-session -d -s ssh$USER$$ 'ssh '$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 'VMS'
|
||||||
@@ -26,5 +26,5 @@ do tmux split-window -h 'ssh '${!i}
|
|||||||
tmux select-layout tiled
|
tmux select-layout tiled
|
||||||
done
|
done
|
||||||
|
|
||||||
tmux -2 attach-session -t ssh$USER
|
tmux -2 attach-session -t ssh$USER$$
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user