Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion themes/powerline/powerline.base.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}
Expand Down