diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2015-11-28 13:11:10 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2015-11-28 13:11:10 +0300 |
commit | 0dc36ee6148d0db99e3b580a7767e4f7b8f77c87 (patch) | |
tree | e96ecf03da109e3edab24ea29279590ccf90a795 /powerlevel9k.zsh-theme | |
parent | a09a4b8dd52511507092c3daf11438b501bd8a1c (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-x | powerlevel9k.zsh-theme | 2 |
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') |