re: My Favorite Linux Tools VIEW POST


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\""

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

code of conduct - report abuse