diff options
author | Tim Otlik <t.otlik@handelsblattgroup.com> | 2018-05-17 13:08:04 +0300 |
---|---|---|
committer | Tim Otlik <t.otlik@handelsblattgroup.com> | 2018-05-17 14:05:36 +0300 |
commit | 557f5993ea7c8ae1fb196bcb21c4e9fd9dee26ce (patch) | |
tree | 93bf018ffe21067720e730b6674da08e17e67474 /powerlevel9k.zsh-theme | |
parent | 7234d52ebd76b6b89e172ac5b19339f0a37ab596 (diff) |
add cog symbol to dir segment if folder is /etc*
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 8f06866f..b6493fed 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -909,10 +909,13 @@ prompt_dir() { "HOME" "HOME_ICON" "HOME_SUBFOLDER" "HOME_SUB_ICON" "NOT_WRITABLE" "LOCK_ICON" + "ETC" "ETC_ICON" ) local state_path="$(print -P '%~')" local current_state="DEFAULT" - if [[ "${POWERLEVEL9K_DIR_SHOW_WRITABLE}" == true && ! -w "$PWD" ]]; then + if [[ $state_path == '/etc'* ]]; then + current_state='ETC' + elif [[ "${POWERLEVEL9K_DIR_SHOW_WRITABLE}" == true && ! -w "$PWD" ]]; then current_state="NOT_WRITABLE" elif [[ $state_path == '~' ]]; then current_state="HOME" |