#!/bin/bash DIR="$(dirname "$(readlink -f "$0")")" COMPILE_CMDS=$DIR/../../compile_commands.json inotifywait -q -m -e close_write --format %e $COMPILE_CMDS | while read events; do rc -J $COMPILE_CMDS done & while [ true ]; do \ $DIR/rdm $@ ; sleep 10; done