diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2015-11-28 02:03:07 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2015-11-28 02:03:07 +0300 |
commit | c10bac90ba55607fe19913d1e71571b83d8df6dc (patch) | |
tree | e8dcedb104093f76eb5282f57ffeddbd56034236 /powerlevel9k.zsh-theme | |
parent | 3fea92369f11797077f7a92468814ab1ee0238c3 (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-x | powerlevel9k.zsh-theme | 9 |
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 |