- Install growlnotify
- Set up public keys so that the other machine can SSH into the Mac without prompting
- Add the following to
.bashrc
:get_source_machine() { echo ${SSH_CLIENT%% *} } function growlnotify() { if [ "$AT_HOME" = "true" ]; then return; fi source_machine=$(get_source_machine) ssh mihaip@$source_machine /usr/local/bin/growlnotify \ -n "command-notifier" \ -m \"[$PWD]\" \"$1\" 2> /dev/null }
- In the Growl PrefPane, the notifications can be styled for the
command-notifier
"Application." (I like Music Video)