summaryrefslogtreecommitdiff
path: root/internal/wizard.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-10-27 11:41:11 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-10-27 11:41:11 +0300
commite7520409d117e454d9a688c8e403d5fedf55993c (patch)
tree78364d08821b4e4c01feded764663540fc4a8b80 /internal/wizard.zsh
parentdfe6a86eb3341d407cc2723606dfc9a0de02236c (diff)
use more conservative glyphs in 'compatible' and 'powerline' mode
See #265.
Diffstat (limited to 'internal/wizard.zsh')
-rwxr-xr-xinternal/wizard.zsh23
1 files changed, 20 insertions, 3 deletions
diff --git a/internal/wizard.zsh b/internal/wizard.zsh
index 0b31417d..8a530440 100755
--- a/internal/wizard.zsh
+++ b/internal/wizard.zsh
@@ -1413,11 +1413,28 @@ function generate_config() {
sub VPN_IP_VISUAL_IDENTIFIER_EXPANSION "'\${P9K_VISUAL_IDENTIFIER}'"
fi
- if [[ $POWERLEVEL9K_MODE == compatible ]]; then
- # Many fonts don't have the gear or the lock icon.
- sub BACKGROUND_JOBS_VISUAL_IDENTIFIER_EXPANSION "'⇶'"
+ if [[ $POWERLEVEL9K_MODE == (compatible|powerline) ]]; then
+ # Many fonts don't have the default icons.
+ [[ $POWERLEVEL9K_MODE == compatible ]] && local error='х' || local error='✘'
+ uncomment 'typeset -g POWERLEVEL9K_STATUS_ERROR_VISUAL_IDENTIFIER_EXPANSION'
+ sub STATUS_ERROR_VISUAL_IDENTIFIER_EXPANSION "'$error'"
+ uncomment 'typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_VISUAL_IDENTIFIER_EXPANSION'
+ sub STATUS_ERROR_SIGNAL_VISUAL_IDENTIFIER_EXPANSION "'$error'"
+ uncomment 'typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_VISUAL_IDENTIFIER_EXPANSION'
+ sub STATUS_ERROR_PIPE_VISUAL_IDENTIFIER_EXPANSION "'$error'"
uncomment 'typeset -g POWERLEVEL9K_DIR_NOT_WRITABLE_VISUAL_IDENTIFIER_EXPANSION'
sub DIR_NOT_WRITABLE_VISUAL_IDENTIFIER_EXPANSION "'∅'"
+ uncomment 'typeset -g POWERLEVEL9K_TERRAFORM_VISUAL_IDENTIFIER_EXPANSION'
+ sub TERRAFORM_VISUAL_IDENTIFIER_EXPANSION "'tf'"
+ uncomment 'typeset -g POWERLEVEL9K_RANGER_VISUAL_IDENTIFIER_EXPANSION'
+ sub RANGER_VISUAL_IDENTIFIER_EXPANSION "'▲'"
+ uncomment 'typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_VISUAL_IDENTIFIER_EXPANSION'
+ sub KUBECONTEXT_DEFAULT_VISUAL_IDENTIFIER_EXPANSION "'○'"
+ uncomment 'typeset -g POWERLEVEL9K_AZURE_VISUAL_IDENTIFIER_EXPANSION'
+ sub AZURE_VISUAL_IDENTIFIER_EXPANSION "'az'"
+ uncomment 'typeset -g POWERLEVEL9K_AWS_EB_ENV_VISUAL_IDENTIFIER_EXPANSION'
+ sub AWS_EB_ENV_VISUAL_IDENTIFIER_EXPANSION "'eb'"
+ sub BACKGROUND_JOBS_VISUAL_IDENTIFIER_EXPANSION "'≡'"
fi
if [[ $POWERLEVEL9K_MODE == (awesome-patched|awesome-fontconfig) && $cap_python == 0 ]]; then