fix detection of awesome-mapped-fontconfig in the wizard

This commit is contained in:
romkatv 2019-08-26 12:05:42 +02:00
commit b3abfc089a
3 changed files with 20 additions and 4 deletions

View file

@ -3243,7 +3243,14 @@ _p9k_precmd() {
if (( !__p9k_configured )); then
__p9k_configured=1
if [[ "${parameters[(I)POWERLEVEL9K_*]}" == (POWERLEVEL9K_MODE|) ]] && _p9k_can_configure -q; then
if $__p9k_root_dir/internal/wizard.zsh -d $__p9k_root_dir; then
(
local p=("${(@)parameters[(I)AWESOME_*|CODEPOINT_*]}")
if (( $#p )); then
typeset -x -- $p
fi
$__p9k_root_dir/internal/wizard.zsh -d $__p9k_root_dir -f $awesome
)
if (( !$? )); then
source $__p9k_cfg_path
_p9k_must_init
fi