diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-11-19 12:43:51 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-11-19 12:43:51 +0300 |
commit | 4b451fbc8aa91f0d2b2cc839ff1529a35cc95bec (patch) | |
tree | 282a150a2f2df1b2d6bcf881ac18a3668378ad1e /internal/wizard.zsh | |
parent | 0f2573e8ba7392161366950933d28ef70eea8852 (diff) |
replace ↵ with ✘ in config templates
Some terminals are unable to display ↵ even when using fonts that
have this ghyph. See #326.
Diffstat (limited to 'internal/wizard.zsh')
-rwxr-xr-x | internal/wizard.zsh | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/internal/wizard.zsh b/internal/wizard.zsh index 1eed65e0..15b2eab7 100755 --- a/internal/wizard.zsh +++ b/internal/wizard.zsh @@ -1443,15 +1443,13 @@ function generate_config() { sub VPN_IP_VISUAL_IDENTIFIER_EXPANSION "'\${P9K_VISUAL_IDENTIFIER}'" fi + if [[ $POWERLEVEL9K_MODE == compatible ]]; then + sub STATUS_ERROR_VISUAL_IDENTIFIER_EXPANSION "'х'" + sub STATUS_ERROR_SIGNAL_VISUAL_IDENTIFIER_EXPANSION "'х'" + sub STATUS_ERROR_PIPE_VISUAL_IDENTIFIER_EXPANSION "'х'" + fi + 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' |