Skip to content

Instantly share code, notes, and snippets.

View russkociuba's full-sized avatar

Russ Kociuba russkociuba

View GitHub Profile
@russkociuba
russkociuba / iterm2_script_tabs.scpt
Created November 28, 2016 21:12
Opens a new iTerm2 window with multiple tabs each executing a command set in the script
# The list of commands to run in each tab of the terminal window
set cmdList to {"ssh user@host1.example.com", "ssh user@host2.example.com"}
# You can append to the list just to break up really long lines
# set cmdList to cmdList & {"ssh user@host3.example.com"}
tell application "iTerm2"
# Not sure how to create an "empty" window so for the window we pick the
# first command in the list