Last active
April 19, 2017 15:50
-
-
Save jjelosua/7f696f6f527ab40599f4abf216a6c3e6 to your computer and use it in GitHub Desktop.
iTermV3 idp georgia apple script
This file contains hidden or 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 | |
-- idp-georgia tool pane | |
set name to "idp-georgia" | |
set server to (split vertically with default profile) | |
-- CHANGE path to your needs | |
write text "cd ~/npr/projects/idp-georgia/" | |
write text "workon idp-georgia" | |
write text "git pull" | |
end tell | |
tell server | |
-- server pane | |
set name to "server" | |
set daemon to (split horizontally with default profile) | |
-- CHANGE path to your needs | |
write text "cd ~/npr/projects/idp-georgia/" | |
write text "workon idp-georgia" | |
write text "fab app" | |
end tell | |
tell daemon | |
-- daemon pane | |
set name to "daemon" | |
set mongodb to (split horizontally with default profile) | |
-- CHANGE path to your needs | |
write text "cd ~/npr/projects/idp-georgia/" | |
write text "workon idp-georgia" | |
write text "fab daemons.main" | |
end tell | |
tell mongodb | |
-- mongodb pane | |
set name to "mongodb" | |
write text "mongod --config /usr/local/etc/mongod.conf" | |
end tell | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment