Skip to content

Instantly share code, notes, and snippets.

@richashworth
Created March 30, 2019 22:03
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 richashworth/111d8247c4dd3fcffd5bfda36913c477 to your computer and use it in GitHub Desktop.
Save richashworth/111d8247c4dd3fcffd5bfda36913c477 to your computer and use it in GitHub Desktop.
Trigger execution of Kotlin scripts on save (useful for approximating worksheets).
fswatch -0 . | xargs -0 -n 1 -I {} sh -c "clear; echo '\033[0;32mRunning {}\033[0;37m'; echo; kscript {} ; echo;"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment