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

This commit is contained in:
mengruxing
2020-06-28 11:27:35 +08:00
committed by Koichi Murase
parent 0e9f0e7e7c
commit 7f4c2f3753

View File

@ -162,7 +162,7 @@ function __powerline_prompt_command {
[[ "${last_status}" -ne 0 ]] && __powerline_left_segment $(__powerline_last_status_prompt ${last_status})
[[ -n "${LEFT_PROMPT}" ]] && LEFT_PROMPT+="$(set_color ${LAST_SEGMENT_COLOR} -)${separator_char}${_omb_prompt_normal}"
PS1="${LEFT_PROMPT} "
PS1="\[\e]0;\u@\h: \w\a\]${LEFT_PROMPT} "
## cleanup ##
unset LAST_SEGMENT_COLOR \