Skip to content

Instantly share code, notes, and snippets.

@tkuriyama
Last active September 11, 2020 19:38
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 tkuriyama/9e7203cb1e45fd31a1d2178a254beecd to your computer and use it in GitHub Desktop.
Save tkuriyama/9e7203cb1e45fd31a1d2178a254beecd to your computer and use it in GitHub Desktop.
TCR Stuff
# watch.sh using fswatch on macOS
while true
do
fswatch -r --one-event -e modify ./src
./tcr.sh
done
# commit.sh using AppleScript to create a GUI prompt
MESSAGE=$(osascript -e 'text returned of (display dialog "eEter commit message" default answer "TCR autocommit")')
git commit -am "$MESSAGE"
# test.sh with PyTest
py.test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment