From 18cc06b38ffde91e3ccf8c0999cfaa701423e0f8 Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Sat, 26 Nov 2016 20:02:51 -0800 Subject: [PATCH] Don't no-op terminal.app title if it's customized We only want to override the internal fish hardcoded title. Fixes #3578 --- share/functions/__fish_config_interactive.fish | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/share/functions/__fish_config_interactive.fish b/share/functions/__fish_config_interactive.fish index c7143dd65..bc810b8c7 100644 --- a/share/functions/__fish_config_interactive.fish +++ b/share/functions/__fish_config_interactive.fish @@ -228,8 +228,9 @@ function __fish_config_interactive -d "Initializations that should be performed end if test "$TERM_PROGRAM" = "Apple_Terminal" # Suppress duplicative title display on Terminal.app - echo -n \e\]0\;\a # clear existing title - function fish_title + if not functions -q fish_title + echo -n \e\]0\;\a # clear existing title + function fish_title -d 'no-op terminal title'; end end end __update_cwd_osc # Run once because we might have already inherited a PWD from an old tab