Skip to content

Instantly share code, notes, and snippets.

@mordaha
Created January 11, 2018 10:45
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 mordaha/b13cb48c7ba403bb450e5fc997e89340 to your computer and use it in GitHub Desktop.
Save mordaha/b13cb48c7ba403bb450e5fc997e89340 to your computer and use it in GitHub Desktop.
#!/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