Skip to content

Instantly share code, notes, and snippets.

@ThomasThoren

ThomasThoren/_README.md

Last active Mar 10, 2019
Embed
What would you like to do?
iTerm2
tell application "iTerm2"
tell current window
tell current session
-- main pane
set name to "main"
set webserver to (split vertically with profile "Light")
write text "cd ~/projects/project_name/"
write text "workon project_name"
end tell
tell webserver
-- webserver pane
set name to "webserver"
set tests to (split horizontally with profile "Light")
write text "cd ~/projects/project_name/"
write text "workon project_name"
write text "npm run serve"
end tell
tell tests
-- tests pane
set name to "tests"
set coverage to (split vertically with profile "Light")
write text "cd ~/projects/project_name/"
write text "workon project_name"
write text "npm run tests:watch"
end tell
tell coverage
-- coverage pane
set name to "coverage"
write text "cd ~/projects/project_name/"
write text "workon project_name"
write text "npm run coverage:watch"
end tell
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.