浏览代码

Merge pull request #1889 from jerolimov/patch-1

osx-plugin: Do not clear new tab when calling it with an argument.
Robby Russell 12 年之前
父节点
当前提交
32b4755b8a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      plugins/osx/osx.plugin.zsh

+ 2 - 2
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