Don't no-op terminal.app title if it's customized

We only want to override the internal fish hardcoded title.
Fixes #3578
This commit is contained in:
Aaron Gyes 2016-11-26 20:02:51 -08:00
parent c1d4c07548
commit 18cc06b38f

View file

@ -228,8 +228,9 @@ function __fish_config_interactive -d "Initializations that should be performed
end end
if test "$TERM_PROGRAM" = "Apple_Terminal" if test "$TERM_PROGRAM" = "Apple_Terminal"
# Suppress duplicative title display on Terminal.app # Suppress duplicative title display on Terminal.app
echo -n \e\]0\;\a # clear existing title if not functions -q fish_title
function fish_title echo -n \e\]0\;\a # clear existing title
function fish_title -d 'no-op terminal title'; end
end end
end end
__update_cwd_osc # Run once because we might have already inherited a PWD from an old tab __update_cwd_osc # Run once because we might have already inherited a PWD from an old tab