5 ms·
I personally use a modified zbell (in zsh) to give me a notification when a command finishes after 30 seconds, and send me an email if it takes over 2 minutes.
by stirfish 1y ago
I personally use a modified zbell (in zsh) to give me a notification when a command finishes after 30 seconds, and send me an email if it takes over 2 minutes.
- bayindirh 1y agoI generally use Konsole's "notify when program exits" feature. For longer tasks, I have a small tool which I pipe to, and it sends me push notification with the output (if I prefer).
- stirfish 1y agoI had a tool I'd pipe to, but I'd often only think about it after I'd realize that the command was going to take a while. A push notification sound cool; I used email because I knew how to hack it together with curl. Here's one zbell implementation, not sure it's the original but it looks like it does the trick: https://gist.github.com/oknowton/8346801 https://gist.github.com/oknowton/8346801
- bayindirh 1y agoThanks for sharing the bell. I'll take a look. If you want to try push notifications, I use https://pushover.net https://pushover.net as a service. I developed the tool myself, and it's at https://git.sr.ht/~bayindirh/nudge https://git.sr.ht/~bayindirh/nudge if you feel like checking it out. If you want to host the whole push notification infrastructure, you can look at https://ntfy.sh https://ntfy.sh which also can be integrated with cURL.