mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 06:58:01 +00:00
prompt: Remove 'powerlevel9k' deprecation warning
'powerlevel9k' is unsupported and deprecated for 2 years now. It's time to cleanu the deprecation warning message.
This commit is contained in:
parent
f5dff4fe22
commit
e7f75d20bc
@ -10,18 +10,8 @@ autoload -Uz promptinit && promptinit
|
||||
|
||||
# Load the prompt theme.
|
||||
zstyle -a ':prezto:module:prompt' theme 'prompt_argv'
|
||||
if [[ "$TERM" == (dumb|linux|*bsd*) ]] || (( $#prompt_argv < 1 )); then
|
||||
if [[ $TERM == (dumb|linux|*bsd*) ]] || (( $#prompt_argv < 1 )); then
|
||||
prompt 'off'
|
||||
elif [[ "$prompt_argv[1]" == 'powerlevel9k' ]] ; then
|
||||
<<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 by setting:
|
||||
zstyle ':prezto:module:prompt' theme 'powerlevel10k'
|
||||
in ${${ZDOTDIR:-$HOME}/#$HOME/~}/.zpreztorc.
|
||||
Switching to prezto default prompt 'sorin'..."
|
||||
EOW
|
||||
prompt 'sorin'
|
||||
else
|
||||
prompt "$prompt_argv[@]"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user