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