diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2016-12-04 20:43:47 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2016-12-04 20:43:47 +0300 |
commit | 202ab1500727e4f37545eaff849d4f9a52b823c4 (patch) | |
tree | 46f82508dfe4728bf012d9978bb7719af8aa8654 /powerlevel9k.zsh-theme | |
parent | 11b8545fe283fd7c5b51ef2eef411057d9f3cfe2 (diff) |
Fix display of custom dir path separator on linux
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 9bf09c6f..c4b24b55 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -505,7 +505,7 @@ prompt_dir() { fi if [[ "${POWERLEVEL9K_DIR_PATH_SEPARATOR}" != "/" ]]; then - current_path=$(echo "${current_path}" | sed "s/\//${POWERLEVEL9K_DIR_PATH_SEPARATOR}/g") + current_path=$(print -P "${current_path}" | sed "s/\//${POWERLEVEL9K_DIR_PATH_SEPARATOR}/g") fi typeset -AH dir_states @@ -520,7 +520,7 @@ prompt_dir() { elif [[ $(print -P "%~") == '~'* ]]; then current_state="HOME_SUBFOLDER" fi - "$1_prompt_segment" "$0_${current_state}" "$2" "blue" "$DEFAULT_COLOR" "$current_path" "${dir_states[$current_state]}" + "$1_prompt_segment" "$0_${current_state}" "$2" "blue" "$DEFAULT_COLOR" "${current_path}" "${dir_states[$current_state]}" } # Docker machine |