Run a user-defined command on file changes
https://github.com/sharkdp/trigger.git
`` bash
Usage: trigger COMMAND [FILE...]
%%CODEBLOCK0%%
trigger make
%%CODEBLOCK1%% bash
trigger 'python #1' main.py config.py
%%CODEBLOCK2%% bash
tg python main.py config.py
%%CODEBLOCK3%% bash
tg 'pandoc -t latex -o README.pdf' README.md
%%CODEBLOCK4%% bash
trigger 'lessc #1 > main.css' main.less
%%CODEBLOCK5%% bash
trigger -i longRunningCommand input.dat
%%CODEBLOCK6%% bash
git clone https://github.com/sharkdp/trigger ~/.trigger
echo 'export PATH="$PATH:$HOME/.trigger"' >> .bashrc
``
Also have a look at these projects, to see if they fit your needs better: