diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2016-01-16 05:50:36 +0300 |
---|---|---|
committer | Ben Hilburn <bhilburn@gmail.com> | 2016-01-16 05:50:36 +0300 |
commit | 4d25fd5dc38f80895814118323842d15025f3ae6 (patch) | |
tree | 57420ed26f890bd8ee15543c26dde3bfb10b9ad2 /powerlevel9k.zsh-theme | |
parent | 94419f54a575944075a979f84dbfc981eae8a08a (diff) | |
parent | cf921fb90c8d239f57391cf6ae459c3d6b6420bf (diff) |
Merge pull request #192 from Kayant/next
Add sub folder icon when in home subdirectories
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 119d31e2..c3b12759 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -429,8 +429,10 @@ prompt_dir() { fi local current_icon='' - if [[ $(print -P "%~") == '~'* ]]; then + if [[ $(print -P "%~") == '~' ]]; then "$1_prompt_segment" "$0_HOME" "$2" "blue" "$DEFAULT_COLOR" "$current_path" 'HOME_ICON' + elif [[ $(print -P "%~") == '~'* ]]; then + "$1_prompt_segment" "$0_HOME_SUBFOLDER" "$2" "blue" "$DEFAULT_COLOR" "$current_path" 'HOME_SUB_ICON' else "$1_prompt_segment" "$0_DEFAULT" "$2" "blue" "$DEFAULT_COLOR" "$current_path" 'FOLDER_ICON' fi |