Skip to content

Instantly share code, notes, and snippets.

@jjelosua
Last active April 19, 2017 15:50
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 jjelosua/7f696f6f527ab40599f4abf216a6c3e6 to your computer and use it in GitHub Desktop.
Save jjelosua/7f696f6f527ab40599f4abf216a6c3e6 to your computer and use it in GitHub Desktop.
iTermV3 idp georgia apple script
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