From 0dc36ee6148d0db99e3b580a7767e4f7b8f77c87 Mon Sep 17 00:00:00 2001 From: Dominik Ritter Date: Sat, 28 Nov 2015 11:11:10 +0100 Subject: [PATCH] We need to always evaluate the path for the home/folder icon mechanism to work correctly. --- powerlevel9k.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')