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

Environment variable EMACS was replaced by INSIDE_EMACS
pull/9580/head
Kyle Gerard Felker 2021-01-07 13:55:18 -06:00 committed by GitHub
parent 86f805280f
commit c9bf8b4a84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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