1
0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-12 19:18:28 +02:00

fix detection of awesome-mapped-fontconfig in the wizard

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

View File

@ -60,6 +60,12 @@ function _p9k_can_configure() {
function p9k_configure() {
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
}

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

View File

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