Fix home dir substitution

See the discussions in 953e422bed (commitcomment-58148656) . Tested with bash 5.1 and  bash 3.2
pull/1974/head
zou000 2021-10-16 19:15:00 -07:00 committed by GitHub
parent 48c17e95c3
commit 413d7a1326
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ function __powerline_scm_prompt() {
}
function __powerline_cwd_prompt() {
local cwd="${PWD/$HOME/~}"
local cwd=${PWD/$HOME/\~}
echo "${cwd}|${CWD_THEME_PROMPT_COLOR}"
}