From 4b94e642905ee6bd3eb8c6e3a0c13de962574cd7 Mon Sep 17 00:00:00 2001 From: PorridgePi Date: Sat, 29 Aug 2020 23:32:54 +0800 Subject: [PATCH] fix: powerlevel9k instant prompt warning --- .zshrc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.zshrc b/.zshrc index ec525af..cee6d04 100644 --- a/.zshrc +++ b/.zshrc @@ -1,9 +1,9 @@ # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. # Initialization code that may require console input (password prompts, [y/n] # confirmations, etc.) must go above this block; everything else may go below. -if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then - source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" -fi +# if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then +# source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" +# fi source ~/.zplug/init.zsh @@ -23,6 +23,13 @@ fi # Then, source plugins and add commands to $PATH zplug load --verbose +# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. +# Initialization code that may require console input (password prompts, [y/n] +# confirmations, etc.) must go above this block; everything else may go below. +if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then + source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" +fi + cd ~ # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.