Skip to content

Automatic Build Reload

efyx edited this page Jun 30, 2017 · 6 revisions

entr :

find path_to_my_project -type f| entr -r path_to_nidium/nidium path_to_my_project/my_app.nml

OSX :

  • Save this script as fswatch.sh
  • chmod +x fswatch.sh
  • Run ./fswatch.sh /directory/to/watch
#!/usr/bin/env bash
ABSOLUTE_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/$(basename "${BASH_SOURCE[0]}")"

if [ "$#" -eq 0 ]; then
    echo "Usage : fswatch.sh <directory>"
elif [ "$#" -eq 1 ]; then
    DIR=`pwd`/
    echo "Watching for change in $DIR"
    fswatch -r -o -l 0.2 $DIR | xargs -n1 "${ABSOLUTE_PATH}" --update
else
    pkill -HUP -f nidium.app
fi

xdotool:

#todo
Clone this wiki locally