From fb2805e5abf02c397fddfa35c16e31d05521c6ca Mon Sep 17 00:00:00 2001 From: Roman Perepelitsa Date: Mon, 19 Oct 2020 14:46:22 +0200 Subject: [PATCH] wizard: suppress the into message if z4h would print its welcome --- internal/wizard.zsh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/internal/wizard.zsh b/internal/wizard.zsh index ac0e265..86a551e 100644 --- a/internal/wizard.zsh +++ b/internal/wizard.zsh @@ -23,6 +23,9 @@ else function restore_screen() {} fi +local -i in_z4h_wizard=0 +[[ $force == 0 && $functions[z4h] == 1 && -n $Z4H && -e $Z4H/welcome ]] && in_z4h_wizard=1 + local -i success=0 { # always @@ -418,6 +421,7 @@ function ask() { local -i greeting_printed=0 function print_greeting() { + (( in_z4h_wizard )) && return (( greeting_printed )) && return if (( force )); then flowing -c This is %4FPowerlevel10k configuration wizard%f. \ @@ -2075,10 +2079,7 @@ done restore_screen -local -i print_outro=0 -[[ $force == 1 || -z $Z4H || ! -e $Z4H/welcome || $functions[z4h] == 0 ]] && print_outro=1 - -if (( print_outro )); then +if (( !in_z4h_wizard )); then print flowing +c New config: "%B${__p9k_cfg_path_u//\\/\\\\}%b." @@ -2093,7 +2094,7 @@ fi generate_config || return change_zshrc || return -if (( print_outro )); then +if (( !in_z4h_wizard )); then print -rP "" flowing +c File feature requests and bug reports at "$(href https://github.com/romkatv/powerlevel10k/issues)" print -rP ""