Skip to content

Instantly share code, notes, and snippets.

@austindoeswork
Created September 20, 2018 17:25
Show Gist options
  • Save austindoeswork/d0030c6fa17217810410e1e7509b70a5 to your computer and use it in GitHub Desktop.
Save austindoeswork/d0030c6fa17217810410e1e7509b70a5 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