mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +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
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue