32b4755b8ab8c104affbfb237d7b425dbd88b90e

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #1889 from jerolimov/patch-1

osx-plugin: Do not clear new tab when calling it with an argument.

Diff

 1diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh
 2index 51cd7c143436ebf30726f7470bc09562661c74b9..dd785f91131a3e9dd53f5f0e3f01378919c9f230 100644
 3--- a/plugins/osx/osx.plugin.zsh
 4+++ b/plugins/osx/osx.plugin.zsh
 5@@ -6,7 +6,7 @@
 6 # ------------------------------------------------------------------------------
 7 
 8 function tab() {
 9-  local command="cd \\\"$PWD\\\""
10+  local command="cd \\\"$PWD\\\"; clear; "
11   (( $# > 0 )) && command="${command}; $*"
12 
13   the_app=$(
14@@ -34,7 +34,7 @@ EOF
15           launch session "Default Session"
16           set current_session to current session
17           tell current_session
18-            write text "${command}; clear;"
19+            write text "${command}"
20           end tell
21         end tell
22       end tell