Skip to content

Instantly share code, notes, and snippets.

@venkatd
Created May 7, 2020 16:39
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 venkatd/ab5ff54b69a52d951ba352d4fc1d53f8 to your computer and use it in GitHub Desktop.
Save venkatd/ab5ff54b69a52d951ba352d4fc1d53f8 to your computer and use it in GitHub Desktop.
#!/bin/bash
OUTPUT_PATH=${1:-~/bin/tdev}
echo "Compiling $PWD to $OUTPUT_PATH whenever a *.go file changes..."
fswatch -e “.*” -i “\\.go$” . | xargs -n1 -I{} go build -v -o $OUTPUT_PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment