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

prompt: Remove Powerlevel9k

Powerlevel9k has been marked deprecated and unmaintained by the author.
Powerlevel10k is now the recommended replacement.

See: https://github.com/Powerlevel9k/powerlevel9k#powerlevel9k-is-deprecated-and-now-unmaintained-please-use-powerlevel10k
This commit is contained in:
Indrajit Raychaudhuri 2021-04-26 14:04:43 -05:00 committed by Indrajit Raychaudhuri
parent ce937020ce
commit 0a07ba27a2
3 changed files with 5 additions and 5 deletions

4
.gitmodules vendored
View File

@ -25,10 +25,6 @@
[submodule "modules/prompt/external/async"]
path = modules/prompt/external/async
url = https://github.com/mafredri/zsh-async.git
[submodule "modules/prompt/external/powerlevel9k"]
path = modules/prompt/external/powerlevel9k
url = https://github.com/bhilburn/powerlevel9k.git
shallow = true
[submodule "modules/prompt/external/powerlevel10k"]
path = modules/prompt/external/powerlevel10k
url = https://github.com/romkatv/powerlevel10k.git

@ -1 +0,0 @@
Subproject commit 2f4b15041fe31d85dc9ef705b818c3a0e6985da3

View File

@ -12,6 +12,11 @@ autoload -Uz promptinit && promptinit
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"
prompt 'sorin'
else
prompt "$prompt_argv[@]"
fi