Alert yourself after a long-running task in terminal
Dev tools
terminal notifications
SHOW HN2021
Alert yourself after a long-running task in terminal
Alert yourself after a long-running task in terminal
gist.github.com#terminal notification#long running task#shell alert#command completion
How HN took it
3 positive, 32 neutral or asking, 0 mixed, 4 critical, out of 39 comments about the project. Thread score -0.03.
Idea: 2 for, 4 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Useful idea for long-running commands
From 2 comments
This is great. Wanted to something about this for a long time. There are more features I desire: notify me when some string pattern occurs in the log. Also I tend to walk away…
tracyhenry on HNThis is a cool idea, I've always wanted to expand this kind of thing to other similar usecases like getting notified after long CI jobs. I think the repo is private though.
petethepig on HN
Objections
Notifies too often when viewing terminal or interactive programs like vim
From 2 comments
There is a native feature for this however gnome-terminal won't ship it largely due to disagreement how to integrate it with shells. However Fedora includes patches for it and I…
kevincox on HNHere is it for fish, using the postexec event handler: ``` function postexec_notify --arg cmd --on-event fish_postexec set -l s $pipestatus if test "$CMD_DURATION" -ge 25000 && !…
aarchi on HN
Existing tools like iTerm and gnome-terminal already do this
From 3 comments
I hear that `terminal-notifier` is pretty much dead and a better replacement with new MacOS APIs is [0]. In any case, I opted against it because iTerm actually supports this…
CGamesPlay on HNThere is a native feature for this however gnome-terminal won't ship it largely due to disagreement how to integrate it with shells. However Fedora includes patches for it and I…
kevincox on HNiTerm supports this! Take a look here: https://stackoverflow.com/questions/30016716/how-do-i-make-iterm-terminal-notify-me-when-a-job-process-is-complete
pokoleo on HN
Requests
Notify on log string patterns and phone calls
From 1 comment
This is great. Wanted to something about this for a long time. There are more features I desire: notify me when some string pattern occurs in the log. Also I tend to walk away…
tracyhenry on HN
Questions
Can it detect whether a program accepts user input?
From 1 comment
Ah, I have something like this just for `make`[0], which I've found very useful. Running it on DEBUG so it covers all commands is an interesting idea. I'm not sure I'd want…
unhammer on HN
Alternatives named
oh-my-zsh bgnotify plugin
From 1 comment
I use ohmyzsh with the bgnotify plugin that does the same. I combine it with the timer plugin to print how long the command takes to complete. I'd argue that most developers…
cocoa19 on HN
noti
From 1 comment
I use `noti` for this: `some_task && noti` `noti some_task` both work. https://github.com/variadico/noti
mosselman on HN
iTerm native notifications
From 2 comments
I hear that `terminal-notifier` is pretty much dead and a better replacement with new MacOS APIs is [0]. In any case, I opted against it because iTerm actually supports this…
CGamesPlay on HNiTerm supports this! Take a look here: https://stackoverflow.com/questions/30016716/how-do-i-make-iterm-terminal-notify-me-when-a-job-process-is-complete
pokoleo on HN
notify-send
From 1 comment
On Gnome (via libnotify): ``` sleep 2 && notify-send "Done" ```
naebother on HN