From 0a07ba27a2f9582a37e7d1a5e08f33c2ad552000 Mon Sep 17 00:00:00 2001 From: Indrajit Raychaudhuri Date: Mon, 26 Apr 2021 14:04:43 -0500 Subject: [PATCH] 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 --- .gitmodules | 4 ---- modules/prompt/external/powerlevel9k | 1 - modules/prompt/init.zsh | 5 +++++ 3 files changed, 5 insertions(+), 5 deletions(-) delete mode 160000 modules/prompt/external/powerlevel9k diff --git a/.gitmodules b/.gitmodules index 547effa..b2337ae 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/modules/prompt/external/powerlevel9k b/modules/prompt/external/powerlevel9k deleted file mode 160000 index 2f4b150..0000000 --- a/modules/prompt/external/powerlevel9k +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 2f4b15041fe31d85dc9ef705b818c3a0e6985da3 diff --git a/modules/prompt/init.zsh b/modules/prompt/init.zsh index 0ec007c..677a470 100644 --- a/modules/prompt/init.zsh +++ b/modules/prompt/init.zsh @@ -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