diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-08-26 11:19:55 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-08-26 11:19:55 +0300 |
commit | 06ddd559227ae502bf2995280a6f0fb3979f770d (patch) | |
tree | a2538be26de9fee73f291b480d2f1d1c05f18686 /internal/wizard.zsh | |
parent | cb1f6c48156e503a85a782194218c38ac28fec4b (diff) |
ask awesome-patched font users about python logo; some are stuck with old fonts that don't have it
Diffstat (limited to 'internal/wizard.zsh')
-rwxr-xr-x | internal/wizard.zsh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/internal/wizard.zsh b/internal/wizard.zsh index 9941f7ed..5c5572d9 100755 --- a/internal/wizard.zsh +++ b/internal/wizard.zsh @@ -917,7 +917,7 @@ function generate_config() { sub BACKGROUND_JOBS_VISUAL_IDENTIFIER_EXPANSION "'⇶'" fi - if [[ $POWERLEVEL9K_MODE == awesome-fontconfig && $cap_python == 0 ]]; then + if [[ $POWERLEVEL9K_MODE == (awesome-patched|awesome-fontconfig) && $cap_python == 0 ]]; then uncomment 'typeset -g POWERLEVEL9K_VIRTUALENV_VISUAL_IDENTIFIER_EXPANSION' uncomment 'typeset -g POWERLEVEL9K_ANACONDA_VISUAL_IDENTIFIER_EXPANSION' uncomment 'typeset -g POWERLEVEL9K_PYENV_VISUAL_IDENTIFIER_EXPANSION' @@ -1087,7 +1087,12 @@ while true; do if (( ! cap_lock )); then ask_lock '\uE138' "Let's try another one." || continue if (( cap_lock )); then - (( cap_diamond )) && POWERLEVEL9K_MODE=awesome-patched || POWERLEVEL9K_MODE=flat + if (( cap_diamond )); then + POWERLEVEL9K_MODE=awesome-patched + ask_python || continue + else + POWERLEVEL9K_MODE=flat + fi else (( cap_diamond )) && POWERLEVEL9K_MODE=powerline || POWERLEVEL9K_MODE=compatible fi @@ -1110,6 +1115,7 @@ while true; do else options+="$POWERLEVEL9K_MODE" fi + (( cap_python )) && options[-1] += ' + python' if (( cap_diamond )); then left_subsep=$right_angle right_subsep=$left_angle |