Skip to content

Instantly share code, notes, and snippets.

@hLittle
Created August 25, 2020 00:04
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 hLittle/abe94a554028b2090db523a1535b937b to your computer and use it in GitHub Desktop.
Save hLittle/abe94a554028b2090db523a1535b937b to your computer and use it in GitHub Desktop.
Osascript to open a new tab with concurrently
#!/bin/bash
export TEST_LINK="http://localhost:1234/blah"
alias startsplit='osascript -e "tell application \"Terminal\" to activate" -e "tell application \"System Events\" to tell process \"Terminal\" to keystroke \"t\" using command down" -e "tell application \"Terminal\" to do script \"~/source/project1/script/server\" in selected tab of the front window" & concurrently -n proxy,project2,chrome -c grey.dim,blue.dim,grey.dim,magenta.dim "~/source/project1/script/proxy start" "~/source/go/src/github.com/project2/script/server" "open -na \"Google Chrome\" --args --incognito \"$TEST_LINK\""'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment