fix detection of awesome-mapped-fontconfig in the wizard

pull/198/head
romkatv 5 years ago
parent 06ddd55922
commit b3abfc089a

@ -60,6 +60,12 @@ function _p9k_can_configure() {
function p9k_configure() { function p9k_configure() {
emulate -L zsh && setopt no_hist_expand extended_glob emulate -L zsh && setopt no_hist_expand extended_glob
$__p9k_root_dir/internal/wizard.zsh -d $__p9k_root_dir -f || return (
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
) || return
source $__p9k_cfg_path source $__p9k_cfg_path
} }

@ -3243,7 +3243,14 @@ _p9k_precmd() {
if (( !__p9k_configured )); then if (( !__p9k_configured )); then
__p9k_configured=1 __p9k_configured=1
if [[ "${parameters[(I)POWERLEVEL9K_*]}" == (POWERLEVEL9K_MODE|) ]] && _p9k_can_configure -q; then 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 source $__p9k_cfg_path
_p9k_must_init _p9k_must_init
fi fi

@ -292,7 +292,10 @@ function ask_narrow_icons() {
text+="%3F${icons[DATE_ICON]// }%fX" text+="%3F${icons[DATE_ICON]// }%fX"
text+="%4F${icons[TIME_ICON]// }%fX" text+="%4F${icons[TIME_ICON]// }%fX"
text+="%5F${icons[RUBY_ICON]// }%fX" text+="%5F${icons[RUBY_ICON]// }%fX"
text+="%6F${icons[AWS_EB_ICON]// }%fX" text+="%6F${icons[HOME_ICON]// }%fX"
text+="%1F${icons[HOME_SUB_ICON]// }%fX"
text+="%2F${icons[FOLDER_ICON]// }%fX"
text+="%3F${icons[RAM_ICON]// }%fX"
while true; do while true; do
clear clear
centered "%BDo all these icons %b%2Ffit between the crosses%f%B?%b" centered "%BDo all these icons %b%2Ffit between the crosses%f%B?%b"
@ -1080,7 +1083,7 @@ while true; do
local -a options=() local -a options=()
ask_diamond || continue ask_diamond || continue
if [[ -n $AWESOME_GLYPHS_LOADED ]]; then if [[ $AWESOME_GLYPHS_LOADED == 1 ]]; then
POWERLEVEL9K_MODE=awesome-mapped-fontconfig POWERLEVEL9K_MODE=awesome-mapped-fontconfig
else else
ask_lock '\uF023' || continue ask_lock '\uF023' || continue

Loading…
Cancel
Save