Only disable title in emacs "term"

There's more than one emacs terminal (for some reason), and term is
the most broken one and can't even handle a title.

Fixes #7122.
This commit is contained in:
Fabian Homborg 2020-06-17 16:42:35 +02:00
parent 00f7cdae62
commit 4660be372a

View File

@ -1,6 +1,6 @@
function fish_title
# emacs is basically the only term that can't handle it.
if not set -q INSIDE_EMACS
# emacs' "term" is basically the only term that can't handle it.
if not set -q INSIDE_EMACS; or string match -vq '*,term:*' -- $INSIDE_EMACS
echo (status current-command) (__fish_pwd)
end
end