mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
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:
parent
c1d4c07548
commit
18cc06b38f
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
if not functions -q fish_title
|
||||
echo -n \e\]0\;\a # clear existing title
|
||||
function fish_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
|
||||
|
|
Loading…
Reference in a new issue