5 ms·
I keep my build output on watch in a tab and have touched tell macOS to send me a notification when it notices a certain text pattern. It’s especially nice for
by z1mm32m4n 9y ago
I keep my build output on watch in a tab and have touched tell macOS to send me a notification when it notices a certain text pattern. It’s especially nice for things like Jekyll rebuilds.
- cormacrelf 9y agoEh, you don't need tmux hooks for that. Just mkfifo notify.pipe grep 'error' < notify.pipe | notify-macosx-or-whatever >/dev/null & compile-whatever | tee notify.pipe Edit: You can do this WAY more simply with bash >() pipes. compile | tee >(grep 'error' | notify >/dev/null)
- diggan 9y agoSure, you dont NEED it, but then you don't need a lot of stuff. I guess the value comes from not having to remember all those commands, just enter the hooks in the config and you have those steps happening automatically for you.
- cormacrelf 9y agoThat's kinda what saving as build.sh is for. IMO tmux is much cooler when you do stuff like running commands in or sending text to a different window. Check out entr(1) for some sweet use cases that are much more fun than the hooks. That vimdiff thing ... I used it a few months ago when trying to replicate some complicated rollup.js compiler output options. Awesome, even though I own Kaleidoscope. http://entrproject.org/ http://entrproject.org/
- kaushalmodi 9y ago> notification .. Jekyll rebuilds I chuckled, I use Hugo :) By the time I save my post and glance towards the browser in other monitor, rebuilding has already finished, and the browser live reload has already displayed the updated post.