diff options
-rwxr-xr-x | functions/icons.zsh | 5 | ||||
-rwxr-xr-x | powerlevel9k.zsh-theme | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/functions/icons.zsh b/functions/icons.zsh index f758d55c..742d8d36 100755 --- a/functions/icons.zsh +++ b/functions/icons.zsh @@ -71,6 +71,7 @@ case $POWERLEVEL9K_MODE in HOME_SUB_ICON $'\uE18D' # FOLDER_ICON $'\uE818' # NETWORK_ICON $'\uE1AD' # + ETC_ICON $'\uE818' # LOAD_ICON $'\uE190 ' # SWAP_ICON $'\uE87D' # RAM_ICON $'\uE1E2 ' # @@ -167,6 +168,7 @@ case $POWERLEVEL9K_MODE in HOME_ICON $'\uF015' # HOME_SUB_ICON $'\uF07C' # FOLDER_ICON $'\uF115' # + ETC_ICON $'\uF013' # NETWORK_ICON $'\uF09E' # LOAD_ICON $'\uF080 ' # SWAP_ICON $'\uF0E4' # @@ -266,6 +268,7 @@ case $POWERLEVEL9K_MODE in HOME_ICON '\u'$CODEPOINT_OF_AWESOME_HOME # HOME_SUB_ICON '\u'$CODEPOINT_OF_AWESOME_FOLDER_OPEN # FOLDER_ICON '\u'$CODEPOINT_OF_AWESOME_FOLDER_O # + ETC_ICON $'\uF013' # NETWORK_ICON '\u'$CODEPOINT_OF_AWESOME_RSS # LOAD_ICON '\u'$CODEPOINT_OF_AWESOME_BAR_CHART' ' # SWAP_ICON '\u'$CODEPOINT_OF_AWESOME_DASHBOARD # @@ -359,6 +362,7 @@ case $POWERLEVEL9K_MODE in HOME_ICON $'\uF015' # HOME_SUB_ICON $'\uF07C' # FOLDER_ICON $'\uF115' # + ETC_ICON $'\uF013' # NETWORK_ICON $'\uF1EB' # LOAD_ICON $'\uF080 ' # SWAP_ICON $'\uF464' # @@ -452,6 +456,7 @@ case $POWERLEVEL9K_MODE in HOME_ICON '' HOME_SUB_ICON '' FOLDER_ICON '' + ETC_ICON $'\uF013' # NETWORK_ICON 'IP' LOAD_ICON 'L' SWAP_ICON 'SWP' 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" |