Created
January 11, 2018 10:45
-
-
Save mordaha/b13cb48c7ba403bb450e5fc997e89340 to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
osascript -e "tell application \"Terminal\" | |
activate | |
do script \"cd /projects/$1/deployment\" in selected tab of the front window | |
do script \"git pull\" in selected tab of the front window | |
end tell" | |
sleep 3 | |
osascript -e "tell application \"Terminal\" | |
activate | |
tell application \"System Events\" | |
keystroke \"t\" using {command down} | |
end tell | |
do script \"cd /projects/$1/deployment\" in selected tab of the front window | |
do script \"vagrant up; and vagrant ssh\" in selected tab of the front window | |
end tell" | |
sleep 3 | |
osascript -e "tell application \"Terminal\" | |
activate | |
tell application \"System Events\" | |
keystroke \"t\" using {command down} | |
end tell | |
do script \"cd /projects/$1/src\" in selected tab of the front window | |
do script \"npm run dev\" in selected tab of the front window | |
end tell" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment