Last active
August 29, 2015 14:16
-
-
Save dannydb/7f7fd315ae755df98939 to your computer and use it in GitHub Desktop.
Open tab in iTerm and setup pane for server and git/fab commands
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 "iTerm" | |
activate | |
set projectSlug to the text returned of (display dialog "Which project?" default answer "") | |
tell the current terminal | |
activate current session | |
-- launch dailygraphics tab | |
launch session "Default Session" | |
tell the last session | |
set name to "1-" & projectSlug | |
write text "cd ~/Projects/" & projectSlug | |
write text "workon " & projectSlug | |
write text "git pull" | |
write text "fab app" | |
tell i term application "System Events" to keystroke "d" using {command down} | |
write text "cd ~/Projects/" & projectSlug | |
write text "workon " & projectSlug | |
write text "fab -l" | |
end tell | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment