1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 12:48:01 +00:00

prompt: Make 'powerlevel9k' removal warning message friendlier

This commit is contained in:
Indrajit Raychaudhuri 2021-04-29 17:22:53 -05:00 committed by Indrajit Raychaudhuri
parent 0a07ba27a2
commit a2f3f419f6

View File

@ -13,9 +13,12 @@ zstyle -a ':prezto:module:prompt' theme 'prompt_argv'
if [[ "$TERM" == (dumb|linux|*bsd*) ]] || (( $#prompt_argv < 1 )); then
prompt 'off'
elif [[ "$prompt_argv[1]" == 'powerlevel9k' ]] ; then
printf "'powerlevel9k' has been deprecated and unsupported by its author, "
printf "consider migrating to 'powerlevel10k' instead.\n"
printf "Switching to prezto default prompt...\n"
<<EOW
WARNING: Prezto does not support 'powerlevel9k' anymore as it has
been deprecated and is not supported by its author.
Consider migrating to 'powerlevel10k' instead.
Switching to prezto default prompt 'sorin'..."
EOW
prompt 'sorin'
else
prompt "$prompt_argv[@]"