summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorChristoph Jerolimov <jerolimov@gmail.com>2013-06-14 01:36:37 +0300
committerChristoph Jerolimov <jerolimov@gmail.com>2013-06-14 01:36:37 +0300
commitb074886ae66ed73957858608b21401767e3c66c0 (patch)
treee1c9f072c58f1219892c8944c955f340a0b506de /plugins
parentc73047e296b4448b11a906658fa7f9f27d54460a (diff)
downloadzsh-b074886ae66ed73957858608b21401767e3c66c0.tar.gz
zsh-b074886ae66ed73957858608b21401767e3c66c0.tar.bz2
zsh-b074886ae66ed73957858608b21401767e3c66c0.zip
Do not clear tab when calling it with an argument.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/osx/osx.plugin.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh
index 51cd7c143..dd785f911 100644
--- a/plugins/osx/osx.plugin.zsh
+++ b/plugins/osx/osx.plugin.zsh
@@ -6,7 +6,7 @@
# ------------------------------------------------------------------------------
function tab() {
- local command="cd \\\"$PWD\\\""
+ local command="cd \\\"$PWD\\\"; clear; "
(( $# > 0 )) && command="${command}; $*"
the_app=$(
@@ -34,7 +34,7 @@ EOF
launch session "Default Session"
set current_session to current session
tell current_session
- write text "${command}; clear;"
+ write text "${command}"
end tell
end tell
end tell