mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
add "\[\e]0;\u@\h: \w\a\]" to top of PS1 to fix terminal title can not update error
This commit is contained in:
committed by
Koichi Murase
parent
0e9f0e7e7c
commit
7f4c2f3753
@ -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 \
|
||||
|
Reference in New Issue
Block a user