fix(emacs): do not emit ANSI escape codes in vterm

Closes #13067
master
Carlo Sala 2025-04-24 15:42:26 +02:00
parent de1ca65dca
commit 959b6cf5ee
No known key found for this signature in database
GPG Key ID: DA6FB450C1A4FE9A
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ alias eeval="$EMACS_PLUGIN_LAUNCHER --eval"
alias eframe='emacsclient --alternate-editor="" --create-frame'
# Emacs ANSI Term tracking
if [[ -n "$INSIDE_EMACS" ]]; then
if [[ -n "$INSIDE_EMACS" ]] && [[ "$INSIDE_EMACS" != "vterm" ]]; then
chpwd_emacs() { print -P "\033AnSiTc %d"; }
print -P "\033AnSiTc %d" # Track current working directory
print -P "\033AnSiTu %n" # Track username