5 Ekim 2012 Cuma

Growl Notification from iTerm 2

To contact us Click HERE


The iTerm 2 project has been around for a while, but it recently caught my attention again as development has become very active recently. Recent versions of iTerm support Growl notifications which is one of my favorite feature.

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