Skip to content

Instantly share code, notes, and snippets.

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 seanupton/470043f17abcaaefebab to your computer and use it in GitHub Desktop.
Save seanupton/470043f17abcaaefebab to your computer and use it in GitHub Desktop.
#!/bin/bash
PROJPATH=/Users/sean/projects
SRCPATH=$PROJPATH/plotqi/build
PKGPATH=$PROJPATH/dev43/app/src/uu.chart
DESTPATH=$PKGPATH/uu/chart/browser/resources/plotqi
# copy assets from plotqi build to uu.chart resource directory:
cp $SRCPATH/plotqi.*s* $DESTPATH
# open a new iTerm2 window in
osascript <<EOF
tell application "iTerm"
activate
end tell
tell application "System Events"
tell process "iTerm"
keystroke "d" using {command down, shift down}
end tell
end tell
tell application "iTerm"
tell current session of current terminal
write text "cd $DESTPATH"
write text "git status"
end tell
end tell
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment