Show HN: Alert yourself after a long-running task in terminal
1–10 of 51 posts
Re: Show HN: Alert yourself after a long-running task in terminal
#2There is an alias called alert in .bashrc in Ubuntu. You can use it as follows: sleep 3; alert
Re: Show HN: Alert yourself after a long-running task in terminal
#3There is an alias called alert in .bashrc in Ubuntu. You can use it as follows: sleep 3; alert
And on Mac OS:
osascript -e "display notification \"Alert\""Re: Show HN: Alert yourself after a long-running task in terminal
#4I just use printf \a for this.
Re: Show HN: Alert yourself after a long-running task in terminal
#5echo [CTRL+V][CTRL+G]
(actually do the keystrokes) works for me in a pinch
Re: Show HN: Alert yourself after a long-running task in terminal
#6iTerm supports this! Take a look here: https://stackoverflow.com/questions/30016716/how-do-i-make-i...
Re: Show HN: Alert yourself after a long-running task in terminal
#7on a Mac
say “Build Done”Re: Show HN: Alert yourself after a long-running task in terminal
#8I 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 should become familiar with ohmyzsh, it has a bunch of useful plugins. My favorites being fzf, git, timer and bgnotify, and I love that tiny green arrow that tells you if the last command was successful.
Re: Show HN: Alert yourself after a long-running task in terminal
#9on a Mac say “Build Done”
on Ubuntu:
spd-say "Build Done"Re: Show HN: Alert yourself after a long-running task in terminal
#10on a Mac say “Build Done”
I do this too soo good!