Add entr one-liner for when no Makefile
dblume

dblume commited on 2021-11-17 17:13:51
Showing 1 changed files, with 6 additions and 0 deletions.

... ...
@@ -35,6 +35,12 @@ Tips: you can also run ctags and cscope, and in vim you can grep and use the Qui
35 35
 
36 36
 See [this QuickFix tip for sorting results by filename](http://git.dlma.com/dotfiles.git/commit/0cb566c53caf931c8b3f423dcfded4660b220cbb).
37 37
 
38
+#### entr One-Liner for When no Makefile
39
+
40
+[This entr command is handy](https://twitter.com/dblume/status/1421011043489255424) when composing interview questions without a Makefile:
41
+
42
+    ls -1 *.cpp | entr sh -c 'g++ -Wall -std=c++14 *.cpp && valgrind --leak-check=yes ./a.out'
43
+
38 44
 ### Visual Studio Code and WSL2
39 45
 
40 46
 Once you've got the [Remote -WSL extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl)
41 47