Skip to content

Instantly share code, notes, and snippets.

@bookest
Created November 13, 2008 06:23
Show Gist options
  • Save bookest/24382 to your computer and use it in GitHub Desktop.
Save bookest/24382 to your computer and use it in GitHub Desktop.
# 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