Created
June 20, 2014 11:56
-
-
Save botanicus/513b3417133d5f0b2e7d to your computer and use it in GitHub Desktop.
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
| launch "iTerm" | |
| tell application "iTerm" | |
| activate | |
| set myterm to (make new terminal) | |
| tell myterm | |
| -- SPLIT the terminal to 4 split windows. | |
| -- Top left split window. | |
| launch session "Default" | |
| -- Top right split window. | |
| tell i term application "System Events" to keystroke "d" using command down | |
| -- Down left split window. | |
| tell i term application "System Events" to keystroke "[" using command down | |
| tell i term application "System Events" to keystroke "D" using command down | |
| -- Down right split window. | |
| tell i term application "System Events" to keystroke "]" using command down | |
| tell i term application "System Events" to keystroke "D" using command down | |
| -- FULLSCREEN MODE motherfucker! | |
| tell i term application "System Events" to keystroke return using command down | |
| -- RUN all the commands. | |
| tell the first session | |
| write text "cd ~/Dropbox/Projects/PPT/source" | |
| set foreground color to {21074, 26471, 28270} | |
| set background color to {64842, 62778, 56626} | |
| set bold color to {18134, 23373, 25098} | |
| set selection color to {60138, 58339, 52171} | |
| set selected text color to {18134, 23373, 25098} | |
| set cursor color to {21257, 26684, 28737} | |
| set cursor_text color to {60037, 58326, 52284} | |
| end tell | |
| tell i term application "System Events" to keystroke "]" using command down | |
| tell the second session | |
| write text "cd ~/Dropbox/Projects/PPT/source" | |
| write text "vagrant up" | |
| write text "vagrant ssh" | |
| write text "sudo tail -f /var/log/upstart/*" | |
| end tell | |
| tell i term application "System Events" to keystroke "]" using command down | |
| tell the third session | |
| write text "cd ~/Dropbox/Projects/PPT/source" | |
| write text "vagrant ssh" | |
| end tell | |
| tell i term application "System Events" to keystroke "]" using command down | |
| tell the last session | |
| write text "cd ~/Dropbox/Projects/PPT/source" | |
| write text "vagrant ssh" | |
| end tell | |
| tell i term application "System Events" to keystroke "]" using command down | |
| -- CLEAR all the sessions. | |
| tell i term application "System Events" to keystroke "]" using command down | |
| tell i term application "System Events" to keystroke "k" using command down | |
| tell i term application "System Events" to keystroke "]" using command down | |
| delay 7 | |
| tell i term application "System Events" to keystroke "k" using command down | |
| tell i term application "System Events" to keystroke "]" using command down | |
| tell i term application "System Events" to keystroke "k" using command down | |
| tell i term application "System Events" to keystroke "]" using command down | |
| tell i term application "System Events" to keystroke "k" using command down | |
| tell i term application "System Events" to keystroke "]" using command down | |
| tell i term application "System Events" to keystroke "k" using command down | |
| -- Activate the first session. | |
| tell i term application "System Events" to keystroke "]" using command down | |
| tell i term application "System Events" to keystroke "]" using command down | |
| end tell | |
| end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment