summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarc Cornellà <hello@mcornella.com>2023-06-11 17:02:48 +0200
committerGitHub <noreply@github.com>2023-06-11 17:02:48 +0200
commitcb8b677488c7a20278917af58dfccd72cd40e1b1 (patch)
treef7ff17754acff2d56ab4d201df0ccacb9b742d7f /lib
parent50c678687e73d1433f278b7bb7f168e8fa817670 (diff)
downloadzsh-cb8b677488c7a20278917af58dfccd72cd40e1b1.tar.gz
zsh-cb8b677488c7a20278917af58dfccd72cd40e1b1.tar.bz2
zsh-cb8b677488c7a20278917af58dfccd72cd40e1b1.zip
fix(termsupport): don't report current working directory in SSH sessions (#11703)
Diffstat (limited to 'lib')
-rw-r--r--lib/termsupport.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh
index 145982705..6d969503d 100644
--- a/lib/termsupport.zsh
+++ b/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