Browse Source

fix(lib): update Emacs terminal detection in `title` function (#9577)

Environment variable EMACS was replaced by INSIDE_EMACS
Kyle Gerard Felker 3 years ago
parent
commit
c9bf8b4a84
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/termsupport.zsh

+ 1 - 1
lib/termsupport.zsh

@@ -10,7 +10,7 @@ function title {
   emulate -L zsh
   setopt prompt_subst
 
-  [[ "$EMACS" == *term* ]] && return
+  [[ "$INSIDE_EMACS" == *term* ]] && return
 
   # if $2 is unset use $1 as default
   # if it is set and empty, leave it as is