summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2013-06-21 07:07:07 -0700
committerRobby Russell <robby@planetargon.com>2013-06-21 07:07:07 -0700
commit32b4755b8ab8c104affbfb237d7b425dbd88b90e (patch)
tree257059d192d0c4cf79a2f70cd388e5ce2007607a /plugins
parent46d4606e66c8060d281f181db8e8fdae4c264290 (diff)
parentb074886ae66ed73957858608b21401767e3c66c0 (diff)
downloadzsh-32b4755b8ab8c104affbfb237d7b425dbd88b90e.tar.gz
zsh-32b4755b8ab8c104affbfb237d7b425dbd88b90e.tar.bz2
zsh-32b4755b8ab8c104affbfb237d7b425dbd88b90e.zip
Merge pull request #1889 from jerolimov/patch-1
osx-plugin: Do not clear new 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