Skip to content

Instantly share code, notes, and snippets.

@ttrefren
Created March 12, 2015 19:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ttrefren/ad554eb69a54ef22a954 to your computer and use it in GitHub Desktop.
Save ttrefren/ad554eb69a54ef22a954 to your computer and use it in GitHub Desktop.
on run argv
tell application "iTerm"
activate
global hostname
set hostname to "dev"
if length of argv is 1 then
set hostname to item 1 of argv
end if
set term to (make new terminal)
tell term
set tab to (make new session at the end of sessions)
end tell
set bounds of window 1 to {0, 0, 1920, 1200}
tell term
repeat with i from 1 to 5
set tab to (make new session at the end of sessions)
tell tab
exec command "ssh -t " & hostname & " screen -RD vim" & i
end tell
end repeat
end tell
terminate the first session of term
end tell
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment