MacOS Command Line Tip>
If you kicked off a job and it turns out it’s going to take a lot longer than you thought, and you don’t want to throw away your progress:
^Z
$ fg; say done
This will pause your program, then resume it, but this time you’ll get an audible notification when it completes. Unblock thyself.
The semicolon is important because it’s analogous to a finally block. You’ll get a notification for either success or failure. You can also && say yay || say oh no.
@kriskowal This should also work the same on a typical Linux terminal, I believe?
@kriskowal Ah, oops, I was only thinking of the ^Z and fg part, not the `say` part 😅
I think probably the closest `say` equivalent on Linux would be `espeak-ng`? That does usually require separate installation. Or alternatively `notify-send` for displaying a notification (which I believe is preinstalled on a lot of distros).