Hacker News new | ask | show | jobs
by nicbou 2105 days ago
I have an alias called "ding" that plays a sound. Add "; ding" to a command and you're set.
1 comments

Wow, I love that. Would you mind posting the full alias?

    printf '\a'
or if you want to display a MacOS notification

    function alert {
        osascript -e 'display notification "'"$1"'"'
    }
I liked this idea so I packaged 'ding' into something you can install[1].

[1] https://github.com/alexdelorenzo/onhold