4 ms·
I 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 sa
by kevincox 5y ago
I 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.