From b7a3f99492d6fbfba0cf5f0f52b2504293262f15 Mon Sep 17 00:00:00 2001 From: mengruxing Date: Sun, 1 Aug 2021 15:55:04 +0800 Subject: [PATCH] add "\[\e]0;\u@\h: \w\a\]" to top of PS1 to fix terminal title can not display --- themes/brainy/brainy.theme.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/brainy/brainy.theme.sh b/themes/brainy/brainy.theme.sh index 90c747f..e442ea7 100644 --- a/themes/brainy/brainy.theme.sh +++ b/themes/brainy/brainy.theme.sh @@ -289,7 +289,7 @@ function __brainy_ps2 { function _omb_theme_PROMPT_COMMAND { exitcode="$?" - PS1="$(__brainy_ps1)" + PS1="\[\e]0;\u@\h: \w\a\]$(__brainy_ps1)" PS2="$(__brainy_ps2)" }