1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-16 17:50:09 +00:00

run configuration wizard if POWERLEVEL9K_MODE is the only set parameter

This commit is contained in:
romkatv 2019-07-31 10:00:27 +02:00
parent d6dedc53bc
commit 40df756e2d
2 changed files with 2 additions and 2 deletions

View file

@ -3281,7 +3281,7 @@ _p9k_precmd() {
if _p9k_must_init; then
if (( !__p9k_configured )); then
__p9k_configured=1
if [[ -z ${parameters[(i)POWERLEVEL9K_*]} ]] && _p9k_can_configure -q; then
if [[ "${parameters[(I)POWERLEVEL9K_*]}" == (POWERLEVEL9K_MODE|) ]] && _p9k_can_configure -q; then
if $__p9k_root_dir/internal/wizard.zsh -d $__p9k_root_dir; then
source $__p9k_cfg_path
_p9k_must_init

View file

@ -146,7 +146,7 @@ function quit() {
print -P "To define an option that does nothing except for disabling Powerlevel10k"
print -P "configuration wizard, type the following command:"
print -P ""
print -P " %2Fecho%f %3F'POWERLEVEL9K_MODE='%f >>! $__p9k_zshrc_u"
print -P " %2Fecho%f %3F'POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD=true'%f >>! $__p9k_zshrc_u"
print -P ""
print -P "To run Powerlevel10k configuration wizard right now, type:"
print -P ""