zsh: add option to disable sourcing P10K theme

This commit is contained in:
PowerUser64 2022-09-17 20:00:47 -07:00
parent 72a25f4af3
commit 35db2c6337

8
.zshrc
View file

@ -69,9 +69,11 @@ ${SKIP_PLUGINS:-false} || {
# prompt
zinit load "romkatv/powerlevel10k"
careful_source "$P10K_CONFIG_LOCATION" \
"No p10k theme selected. Please use \`p10k configure\` to make one or select an existing one like this:
ln -s $SHELL_CONFIG_DIR/p10k/colorful-angular.p10k.zsh $SHELL_CONFIG_DIR/p10k/current" $LINENO
"${SKIP_P10K_THEME:-false}" || careful_source "$P10K_CONFIG_LOCATION" \
"No p10k theme selected. Please use \`p10k configure\` to make one or select an existing one like this:
ln -s $SHELL_CONFIG_DIR/p10k/colorful-angular.p10k.zsh $SHELL_CONFIG_DIR/p10k/current
Set the SKIP_P10K_THEME environment variable to 'true' or make a configuration to disable this warning" $LINENO
# clear plugin options set at the start of this block