From 4660be372ad26f01bde62a3ba1a20316a241e172 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 17 Jun 2020 16:42:35 +0200 Subject: [PATCH] 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. --- share/functions/fish_title.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/functions/fish_title.fish b/share/functions/fish_title.fish index 675269605..1555a7dc6 100644 --- a/share/functions/fish_title.fish +++ b/share/functions/fish_title.fish @@ -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