1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-18 02:20:09 +00:00

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

This commit is contained in:
Marc Cornellà 2023-06-11 17:02:48 +02:00 committed by GitHub
parent 50c678687e
commit cb8b677488
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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