Quicky bash function using AppleScipt Engine to provide notify-send with macOS notifications:
notify-send
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"
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
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Quicky bash function using AppleScipt Engine to provide
notify-send
with macOS notifications: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