aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2015-11-28 02:03:07 +0300
committerDominik Ritter <dritter03@googlemail.com>2015-11-28 02:03:07 +0300
commitc10bac90ba55607fe19913d1e71571b83d8df6dc (patch)
treee8dcedb104093f76eb5282f57ffeddbd56034236 /powerlevel9k.zsh-theme
parent3fea92369f11797077f7a92468814ab1ee0238c3 (diff)
In Awesome-Mode either print a home-icon or a folder icon, depending in which directory the user is.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme9
1 files changed, 8 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 12659e5e..4c1aaa96 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -320,7 +320,14 @@ prompt_dir() {
fi
- "$1_prompt_segment" "$0" "blue" "$DEFAULT_COLOR" "$(print_icon 'HOME_ICON')$current_path"
+ local current_icon=''
+ if [[ "$current_path" == '~'* ]]; then
+ current_icon=$(print_icon 'HOME_ICON')
+ else
+ current_icon=$(print_icon 'FOLDER_ICON')
+ fi
+
+ "$1_prompt_segment" "$0" "blue" "$DEFAULT_COLOR" "$current_icon$current_path"
}
# GO-prompt