Skip to content

Instantly share code, notes, and snippets.

@ThomasThoren
Last active March 10, 2019 18:54
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 ThomasThoren/58e7ca5b4b48cef242d379e6a8fe1da9 to your computer and use it in GitHub Desktop.
Save ThomasThoren/58e7ca5b4b48cef242d379e6a8fe1da9 to your computer and use it in GitHub Desktop.
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