wizard: apply options to Pure style

pull/328/head
romkatv 5 years ago
parent d0bd6f4e21
commit 108208a2bf

@ -1406,14 +1406,6 @@ function ask_zshrc_edit() {
}
function generate_config() {
if [[ $style == pure ]]; then
if [[ -e $__p9k_cfg_path ]]; then
unlink $__p9k_cfg_path || return
fi
cp $__p9k_root_dir/config/p10k-$style.zsh $__p9k_cfg_path || return
return 0
fi
local base && base="$(<$__p9k_root_dir/config/p10k-$style.zsh)" || return
local lines=("${(@f)base}")
@ -1429,6 +1421,7 @@ function generate_config() {
lines=("${(@)lines//$1/$2}")
}
if [[ $style != pure ]]; then
sub MODE $POWERLEVEL9K_MODE
if (( cap_narrow_icons )); then
@ -1582,9 +1575,9 @@ function generate_config() {
fi
(( empty_line )) && sub PROMPT_ADD_NEWLINE true || sub PROMPT_ADD_NEWLINE false
fi
sub INSTANT_PROMPT $instant_prompt
(( transient_prompt )) && sub TRANSIENT_PROMPT always
local header=${(%):-"# Generated by Powerlevel10k configuration wizard on %D{%Y-%m-%d at %H:%M %Z}."}$'\n'

Loading…
Cancel
Save