Update powerline.base.bash

pull/1974/head
zou000 2021-10-16 20:24:07 -07:00 committed by GitHub
parent 413d7a1326
commit bb3a51f742
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -142,7 +142,8 @@ function __powerline_scm_prompt() {
}
function __powerline_cwd_prompt() {
local cwd=${PWD/$HOME/\~}
# For maximum backwards compatibility: no outer quotes, escape ~
local cwd=${PWD/#$HOME/\~}
echo "${cwd}|${CWD_THEME_PROMPT_COLOR}"
}