Skip to content

Commit

Permalink
prompt: Make 'powerlevel9k' removal warning message friendlier
Browse files Browse the repository at this point in the history
  • Loading branch information
indrajitr committed Apr 29, 2021
1 parent 0a07ba2 commit a2f3f41
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions modules/prompt/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]"
Expand Down

0 comments on commit a2f3f41

Please sign in to comment.