From 27cee97228e6d662e4ad5f1c08cde44cfdd0483a Mon Sep 17 00:00:00 2001 From: gwjo Date: Sun, 17 Apr 2011 18:03:08 -0400 Subject: [PATCH] Add growl command for iTerm/iTerm2 --- plugins/osx/osx.plugin.zsh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh index 81eed5e92..fb65fb852 100644 --- a/plugins/osx/osx.plugin.zsh +++ b/plugins/osx/osx.plugin.zsh @@ -55,3 +55,12 @@ end do_submenu do_submenu("iTerm", "Shell", "New Tab") EOF } + +# Send a notification to growl from iTerm or iterm2 +# +# usage: growl "Notification Text" +# +# You can use \n and \t to add newlines and tabs +# respectively. Or add \a to make it beep +growl() { print -n '\e]9;'${@}'\007' } +