add "\[\e]0;\u@\h: \w\a\]" to top of PS1 to fix terminal title can not display

This commit is contained in:
mengruxing 2021-08-01 15:55:04 +08:00 committed by Koichi Murase
parent 0f726d999a
commit b7a3f99492

View File

@ -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)"
}