mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-11 00:00:06 +00:00
wizard: suppress the outro message if z4h would print its welcome
This commit is contained in:
parent
b770e6a3e5
commit
967e845819
1 changed files with 18 additions and 10 deletions
|
@ -2074,22 +2074,30 @@ while true; do
|
||||||
done
|
done
|
||||||
|
|
||||||
restore_screen
|
restore_screen
|
||||||
print
|
|
||||||
|
|
||||||
flowing +c New config: "%B${__p9k_cfg_path_u//\\/\\\\}%b."
|
local -i print_outro=0
|
||||||
if [[ -n $config_backup ]]; then
|
[[ $force == 1 || -z $Z4H || ! -e $Z4H/welcome || $functions[z4h] == 0 ]] && print_outro=1
|
||||||
flowing +c Backup of the old config: "%B${config_backup_u//\\/\\\\}%b."
|
|
||||||
fi
|
if (( print_outro )); then
|
||||||
if [[ -n $zshrc_backup ]]; then
|
print
|
||||||
flowing +c Backup of "%B${__p9k_zshrc_u//\\/\\\\}%b:" "%B${zshrc_backup_u//\\/\\\\}%b."
|
|
||||||
|
flowing +c New config: "%B${__p9k_cfg_path_u//\\/\\\\}%b."
|
||||||
|
if [[ -n $config_backup ]]; then
|
||||||
|
flowing +c Backup of the old config: "%B${config_backup_u//\\/\\\\}%b."
|
||||||
|
fi
|
||||||
|
if [[ -n $zshrc_backup ]]; then
|
||||||
|
flowing +c Backup of "%B${__p9k_zshrc_u//\\/\\\\}%b:" "%B${zshrc_backup_u//\\/\\\\}%b."
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
generate_config || return
|
generate_config || return
|
||||||
change_zshrc || return
|
change_zshrc || return
|
||||||
|
|
||||||
print -rP ""
|
if (( print_outro )); then
|
||||||
flowing +c File feature requests and bug reports at "$(href https://github.com/romkatv/powerlevel10k/issues)"
|
print -rP ""
|
||||||
print -rP ""
|
flowing +c File feature requests and bug reports at "$(href https://github.com/romkatv/powerlevel10k/issues)"
|
||||||
|
print -rP ""
|
||||||
|
fi
|
||||||
|
|
||||||
success=1
|
success=1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue