Skip to content

Instantly share code, notes, and snippets.

View hLittle's full-sized avatar

Heidi Little hLittle

View GitHub Profile
@hLittle
hLittle / alias.sh
Created August 25, 2020 00:04
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\""'