Skip to content

Instantly share code, notes, and snippets.

@austindoeswork
Created September 22, 2018 01:30
Show Gist options
  • Save austindoeswork/20f18ed19e99b0c784a20d900c71fb9b to your computer and use it in GitHub Desktop.
Save austindoeswork/20f18ed19e99b0c784a20d900c71fb9b to your computer and use it in GitHub Desktop.
#!/bin/bash
function tab() {
osascript 2>/dev/null <<EOF
tell application "System Events"
tell process "Terminal" to keystroke "t" using command down
end
tell application "Terminal"
activate
do script with command "$*" in window 1
tell application "System Events"
tell process "Terminal" to keystroke "}" using command down
end
end tell
EOF
echo "$*"
}
tab "vop;be rails s"
tab "vop;npm run start"
tab "to services;./services"
say "swanky"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment