Merge pull request #1974 from zou000/patch-1

Fix home dir substitution
pull/1976/head
Noah Gorny 2021-10-18 21:59:59 +03:00 committed by GitHub
commit 5feebcc9d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

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