summaryrefslogtreecommitdiff
path: root/plugins/osx/osx.plugin.zsh
diff options
context:
space:
mode:
authorDaniel Schauenberg <d@unwiredcouch.com>2010-10-01 10:55:44 +0200
committerDaniel Schauenberg <d@unwiredcouch.com>2010-10-01 10:55:44 +0200
commitd340bfab3345a223114b09d589356ff18a1a3efd (patch)
tree10efcbced0aedcbbc0ac0fc759d00734fefdc341 /plugins/osx/osx.plugin.zsh
parentcef6dcd98bb42c5ca2613bbbef12dd384ec8e33a (diff)
parent26d97a9355d37c55e0b044d8dafc425cc0ca7217 (diff)
downloadzsh-d340bfab3345a223114b09d589356ff18a1a3efd.tar.gz
zsh-d340bfab3345a223114b09d589356ff18a1a3efd.tar.bz2
zsh-d340bfab3345a223114b09d589356ff18a1a3efd.zip
Merge remote branch 'origin/master' into restructure_plugins
Diffstat (limited to 'plugins/osx/osx.plugin.zsh')
-rw-r--r--plugins/osx/osx.plugin.zsh11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh
new file mode 100644
index 000000000..fce88c796
--- /dev/null
+++ b/plugins/osx/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