Alert yourself after a long-running task in terminal

Dev tools

terminal notifications

SHOW HN2021

86points
50comments
#602of 2,533 in 2021
Top 24%of 2021 by points

How HN took it

CuriousMostly questions and neutral comments

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 HN
    • This 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 HN
    • Here 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 HN
    • 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 HN
    • iTerm 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 HN
    • iTerm 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

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/26259007)