use `\w`
parent
bb3a51f742
commit
7911f770cf
|
|
@ -142,10 +142,7 @@ function __powerline_scm_prompt() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function __powerline_cwd_prompt() {
|
function __powerline_cwd_prompt() {
|
||||||
# For maximum backwards compatibility: no outer quotes, escape ~
|
echo "\w|${CWD_THEME_PROMPT_COLOR}"
|
||||||
local cwd=${PWD/#$HOME/\~}
|
|
||||||
|
|
||||||
echo "${cwd}|${CWD_THEME_PROMPT_COLOR}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function __powerline_hostname_prompt() {
|
function __powerline_hostname_prompt() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue