fix(termsupport): don't report current working directory in SSH sessions (#11703)
Diff
1diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh
2index 1459827059c3d7c37d6dbbf84b873066bfcb71e3..6d969503de10976f809a02703936ff8dbc8e141d 100644
3--- a/lib/termsupport.zsh
4+++ b/lib/termsupport.zsh
5@@ -121,8 +121,8 @@ fi
6 #
7 # As of May 2021 mlterm, PuTTY, rxvt, screen, termux & xterm simply ignore the unknown OSC.
8 9-# Don't define the function if we're inside Emacs
10-if [[ -n "$INSIDE_EMACS" ]]; then
11+# Don't define the function if we're inside Emacs or in an SSH session (#11696)
12+if [[ -n "$INSIDE_EMACS" || -n "$SSH_CLIENT" || -n "$SSH_TTY" ]]; then
13 return
14 fi
15