Summary: msg is like echo except that uses growlnotify. die is like msg except that it will also cause an exit and a "sticky" Growl notification.
This is a zsh function that I use a lot in other shell scripts. Its purpose is to alert me to things using growlnotify in addition to 'echo'.
It also sends a message to 'echo' including a timestamp, and logs that output as well.
You can see an example of the output here:
(note that '@air' refers to the hostname of my computer.)
I have included this on github because a lot of my other scripts use it, and I didn't want to have to keep explaining what it was.
If you don't want to use msg you can just replace all instances of it with echo.