Monday, November 13, 2006

iTerm and Growl

by damonp on November 13, 2006

in Apple / Mac,Snippets

Recent versions of iTerm support Growl notifications. iTerm shows how to initiate Growl events from the command line with:

make; echo $'\e]9;make done\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 your .bashrc file:

growl() { echo -e $'\e]9;'${1}'\007' ; return  ; }

Now the command to initiate a notification would be:

make; growl "make done"

Popularity: 11%

{ 11 comments }