Created
November 13, 2008 06:23
-
-
Save bookest/24382 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A bash function to display a growl notification using iTerm's magic | |
# escape sequence[1]. This version will work under screen. | |
# | |
# [1] <http://damonparker.org/blog/2006/11/13/iterm-and-growl/> | |
growl() { | |
local msg="\\e]9;\n\n${*}\\007" | |
case $TERM in | |
screen*) | |
echo -ne '\eP'${msg}'\e\\' ;; | |
*) | |
echo -ne ${msg} ;; | |
esac | |
return | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment