浏览代码

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

Environment variable EMACS was replaced by INSIDE_EMACS
Kyle Gerard Felker 4 年之前
父节点
当前提交
c9bf8b4a84
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/termsupport.zsh

+ 1 - 1
lib/termsupport.zsh

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