Last active
August 5, 2019 20:06
-
-
Save jjelosua/53b416bd6655605846264eb9378e9c0e to your computer and use it in GitHub Desktop.
Applescript to launch dailygraphics iTerm configuration (iTerm v3)
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 | |
-- dailygraphics tool pane | |
set name to "dailygraphics" | |
set webserver to (split vertically with default profile) | |
-- CHANGE path to your needs | |
write text "cd ~/npr/projects/dailygraphics/" | |
write text "workon dailygraphics" | |
write text "git pull" | |
write text "fab -l" | |
end tell | |
tell webserver | |
-- webserver pane | |
set name to "webserver" | |
set graphics to (split horizontally with default profile) | |
-- CHANGE path to your needs | |
write text "cd ~/npr/projects/dailygraphics/" | |
write text "workon dailygraphics" | |
write text "fab app" | |
end tell | |
tell graphics | |
-- graphics pane | |
set name to "graphics" | |
-- change path to your needs | |
write text "cd ~/npr/projects/graphics/" | |
write text "git pull" | |
end tell | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment