Skip to content

Instantly share code, notes, and snippets.

@AaronRutley
Created March 3, 2015 06:55
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 AaronRutley/8d87b6273974beda3268 to your computer and use it in GitHub Desktop.
Save AaronRutley/8d87b6273974beda3268 to your computer and use it in GitHub Desktop.
osascript -e '
set vagrantDir to "project-name-here"
set themeName to "theme-name-here"
tell app "iTerm"
activate
tell the first terminal
launch session "Git Session"
tell the the current session
write text "cd ~/Vagrant-local/" & vagrantDir & "/content"
write text "git status"
end tell
end tell
tell the first terminal
launch session "Grunt Session"
tell the the current session
write text "cd ~/Vagrant-local/" & vagrantDir & "/content/themes/" & themeName
write text "grunt"
end tell
end tell
tell the first terminal
launch session "Open Sublime"
tell the the current session
write text "cd ~/Vagrant-local/" & vagrantDir & "/content/themes/" & themeName
write text "stt"
end tell
end tell
end tell
'
vagrant up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment