From ca447667f92bdd91f4dc0004eed32fd4af29081d Mon Sep 17 00:00:00 2001 From: Carter Tazio Schonwald Date: Wed, 27 Apr 2011 02:46:06 -0400 Subject: [PATCH] cleaned up the formatting --- plugins/osx/osx.plugin.zsh | 50 +++++++++++++++++++------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh index 13addde82..f2d6563e2 100644 --- a/plugins/osx/osx.plugin.zsh +++ b/plugins/osx/osx.plugin.zsh @@ -29,34 +29,34 @@ fi if [[ $TERM_PROGRAM != iTerm.app ]]; then - osascript -e "tell application \"System Events\" - tell process \"Terminal\" to keystroke \"t\" using command down - end - tell application \"Terminal\" - activate - do script with command \"cd \\\"$ThisDirectory\\\"\" in window 1 - end tell" + osascript -e " tell application \"System Events\" + tell process \"Terminal\" to keystroke \"t\" using command down + end + tell application \"Terminal\" + activate + do script with command \"cd \\\"$ThisDirectory\\\"\" in window 1 + end tell" return 1 else osascript -e " tell app \"Finder\" - activate - tell application \"iTerm\" - -- make new terminal - tell the front terminal - activate current session - launch session \"Default Session\" - tell the current session - write text \"cd \\\"$PWD\\\"; cd \\\"$ThisDirectory\\\"\" - end tell - end tell - end tell - tell application \"Finder\" - activate - end tell - tell application \"iTerm\" - activate - end tell - end tell" + activate + tell application \"iTerm\" + make new terminal + tell the front terminal + activate current session + launch session \"Default Session\" + tell the current session + write text \"cd \\\"$PWD\\\"; cd \\\"$ThisDirectory\\\"\" + end tell + end tell + end tell + tell application \"Finder\" + activate + end tell + tell application \"iTerm\" + activate + end tell + end tell" fi