by renewiltord · 3y ago · 0 comments
``` #!/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!" ```
So I can type , and I am sure it's my program and I'm not running something else and it'll autocomplete among my list of programs.