Created
August 25, 2020 00:04
-
-
Save hLittle/abe94a554028b2090db523a1535b937b to your computer and use it in GitHub Desktop.
Osascript to open a new tab with concurrently
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/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