diff options
author | Robby Russell <robby@planetargon.com> | 2010-06-03 12:55:07 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2010-06-03 12:55:07 -0700 |
commit | 89bd2bf317fe458c6a6154824823670dd2d32660 (patch) | |
tree | 3b6caa59af6f9cbe201095ed5a573ab37827c96f /plugins/osx.plugin.zsh | |
parent | 455669e97606bb512b9f69fc1ed9b8fea5105a33 (diff) | |
download | zsh-89bd2bf317fe458c6a6154824823670dd2d32660.tar.gz zsh-89bd2bf317fe458c6a6154824823670dd2d32660.tar.bz2 zsh-89bd2bf317fe458c6a6154824823670dd2d32660.zip |
Moving some rails and osx-specific functions to their corresponding plugin files
Diffstat (limited to 'plugins/osx.plugin.zsh')
-rw-r--r-- | plugins/osx.plugin.zsh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/osx.plugin.zsh b/plugins/osx.plugin.zsh new file mode 100644 index 000000000..fce88c796 --- /dev/null +++ b/plugins/osx.plugin.zsh @@ -0,0 +1,11 @@ +function tab() { + osascript 2>/dev/null <<EOF + tell application "System Events" + tell process "Terminal" to keystroke "t" using command down + end + tell application "Terminal" + activate + do script with command "cd \"$PWD\"; $*" in window 1 + end tell +EOF +}
\ No newline at end of file |