Last active
March 10, 2019 18:54
iTerm2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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