2 ms·
ls | entr make Or any variation thereof. I.e. auto compile and run on file changes A variation (swapping make for ninja/samu) find . -maxdepth 1 | entr sh
by tsegratis 5y ago
ls | entr make
Or any variation thereof. I.e. auto compile and run on file changes
A variation (swapping make for ninja/samu)
find . -maxdepth 1 | entr sh -c "samu || lldb -c /tmp/core -b -o bt -o q"
- kevincox 5y agoI have a similar command that is basically `entr -r "$@" <<</run/some-well-known-file`. Then I have configured my editor to just touch that file every time I save. This is like `ls | entr` but without needing to bother actually listing the right files 99% of the time I just want to trigger when I save anyways. Plus I can use another command to trigger manually if I want (or just touch the file). I almost always have something like `w nix-build`, `w cargo test`, `w -s 'foo && bar'`. Probably my most used command.
- sidpatil 5y agoFor those who don't feel like Googling it: http://eradman.com/entrproject/ http://eradman.com/entrproject/