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

Environment variable EMACS was replaced by INSIDE_EMACS
This commit is contained in:
Kyle Gerard Felker authored and GitHub committed 2021-01-07 20:55:18 +01:00
1 parent 86f805280f
commit c9bf8b4a84
1 file changed
+1 -1
+1 -1
View File
@@ -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