4 ms·
A single tmux window, with vim on the left (with no special IDE plugins). On the right, autocall.zsh watches ./src and runs 'cargo build' whenever a file change
by belovedeagle 10y ago
A single tmux window, with vim on the left (with no special IDE plugins). On the right, autocall.zsh watches ./src and runs 'cargo build' whenever a file changes. (More specifically, I autocall running in a small pane up top and have it run cargo build piped through less [but you need to fake this as a tty to get cargo to output colors] in a specific, larger pane on the bottom.
- jonathonf 10y ago> get cargo to output colors cargo build --color=always
- belovedeagle 10y agoIt might be fixed now but when I set it up either that didn't exist or even that couldn't convince cargo to output color control chars to a non-tty pipe.
- jonathonf 10y agoFair enough. I just know that it worked with tup, for whatever reason I was playing with that instead of just entr+cargo: ls src/*.rs | entr -c cargo build (entr is pretty awesome :)