diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2018-06-07 02:27:15 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2018-06-07 02:27:15 +0300 |
commit | 47e2aed4b2d19775b6f495dc6695d1b876aef083 (patch) | |
tree | ca0d1945c68ffa2273273789c77d9e521131da67 | |
parent | db7638056352caae9ae738259ac0e636f918e0c3 (diff) | |
parent | 557f5993ea7c8ae1fb196bcb21c4e9fd9dee26ce (diff) |
Merge remote-tracking branch 'sambadevi/feature/etc-option-in-dir-segment' into staging_065
-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 1a77c864..1f90e94f 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 ' # @@ -168,6 +169,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' # @@ -268,6 +270,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 # @@ -362,6 +365,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' # @@ -456,6 +460,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 c087cfbf..acd7c78a 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -915,10 +915,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" |