aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2015-11-28 13:11:10 +0300
committerDominik Ritter <dritter03@googlemail.com>2015-11-28 13:11:10 +0300
commit0dc36ee6148d0db99e3b580a7767e4f7b8f77c87 (patch)
treee96ecf03da109e3edab24ea29279590ccf90a795 /powerlevel9k.zsh-theme
parenta09a4b8dd52511507092c3daf11438b501bd8a1c (diff)
We need to always evaluate the path for the home/folder icon mechanism to work correctly.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 4c1aaa96..47d6aa06 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -321,7 +321,7 @@ prompt_dir() {
fi
local current_icon=''
- if [[ "$current_path" == '~'* ]]; then
+ if [[ $(print -P "%~") == '~'* ]]; then
current_icon=$(print_icon 'HOME_ICON')
else
current_icon=$(print_icon 'FOLDER_ICON')