DEV Community

Discussion on: My Favorite Linux Tools

Collapse
 
wrecklass profile image
Steven Martin

Quicky bash function using AppleScipt Engine to provide notify-send with macOS notifications:

function notify-send() {
  /usr/bin/osascript -e "display notification \"$*\" with title \"Notice\" sound name \"Tick\""
}
Enter fullscreen mode Exit fullscreen mode

Now you can just do: notify-send "This is a notice"

To get a popup notification on your Mac.

Note you can change the sound by looking for sounds in /System/Library/Sounds on the Mac