Commit 2cad379e authored by Hermann Mayer's avatar Hermann Mayer

BashRC: Added new watch-make watcher. Improved watch-run to take more than one command.

parent 5478e729
......@@ -20,10 +20,18 @@ function watch-make-test()
done
}
function watch-make()
{
while [ 1 ]; do
inotifywait --quiet -r `pwd` -e close_write --format '%e -> %w%f'
make $@
done
}
function watch-run()
{
while [ 1 ]; do
inotifywait --quiet -r `pwd` -e close_write --format '%e -> %w%f'
$@
bash -c "$@"
done
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment