mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
Fix Terminal.app title
Defining fish_title here is too late because there will already be a title set. Work around issue by clearing it at same time.
This commit is contained in:
parent
ddbf63c46f
commit
dfe7813c02
1 changed files with 1 additions and 0 deletions
|
@ -220,6 +220,7 @@ function __fish_config_interactive -d "Initializations that should be performed
|
|||
# Notify terminals when $PWD changes (issue #906)
|
||||
# VTE and Terminal.app support this in practice.
|
||||
if test "0$VTE_VERSION" -ge 3405 -o "$TERM_PROGRAM" = "Apple_Terminal"
|
||||
echo -n \e\]0\;\a # clear existing title
|
||||
function fish_title; end
|
||||
function __update_cwd_osc --on-variable PWD --description 'Notify capable terminals when $PWD changes'
|
||||
status --is-command-substitution
|
||||
|
|
Loading…
Reference in a new issue