←back to thread

2039 points Gadiguibou | 1 comments | | HN request time: 0.001s | source
Show context
renewiltord ◴[] No.36494351[source]
I use:

``` #!/usr/bin/env bash

    set -u

    title=${2:-Shell}
    msg=$1

    osascript -e "display notification \"$1\" with title \"$title\""
```

As `~/bin/,notify` and put it at the end of long-running commands:

``` run_this_program && ,notify "Long program is done!" ```

replies(2): >>36494572 #>>36507036 #
1. inanutshellus ◴[] No.36507036[source]
an upvote wasn't enough! this is cool, thanks for sharing.