Advertisement
Guest User

remote tmux

a guest
Dec 12th, 2018
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tell application "iTerm2"
  2.   tell current window
  3.     create tab with default profile command "bash -c \"echo redacted.gallew.org;ssh -t redacted.gallew.org \'pgrep -u ${USER} tmux || tmux new-session -d; exec /usr/bin/tmux -CC attach\' \" "
  4.   end tell
  5. end tell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement