To enable the Growl notification, Go to Preferences->AdvancedSettings, Check the Enable Growl notifications.

To initiate Growl events from the command line in iTerm with:
echo $'\e]9;Growl Notification\007'
The example shows how to get an alert after a long make. I know I would never remember that command so I wrote a little Bash user defined function to do the same. Add this to ~/.bash_profile file:
growl() { echo -e $'\e]9;'${1}'\007' ; return ; }
Now the command to initiate a notification would be:
make; growl "make done"
Reference:
http://sites.google.com/site/iterm2home/
http://code.google.com/p/iterm2/
http://widgetterm.sourceforge.net/
Hiç yorum yok:
Yorum Gönder