浏览代码

fix(termsupport): don't report current working directory in SSH sessions (#11703)

Marc Cornellà 1 年之前
父节点
当前提交
cb8b677488
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/termsupport.zsh

+ 2 - 2
lib/termsupport.zsh

@@ -121,8 +121,8 @@ fi
 #
 # As of May 2021 mlterm, PuTTY, rxvt, screen, termux & xterm simply ignore the unknown OSC.
 
-# Don't define the function if we're inside Emacs
-if [[ -n "$INSIDE_EMACS" ]]; then
+# Don't define the function if we're inside Emacs or in an SSH session (#11696)
+if [[ -n "$INSIDE_EMACS" || -n "$SSH_CLIENT" || -n "$SSH_TTY" ]]; then
   return
 fi