From 5afc6a11e68cb638065d14098357cbf3283263e9 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 30 Jul 2022 19:25:07 -0500 Subject: [PATCH] fix: properly load p10k # On branch Development # Your branch is up to date with 'origin/Development'. # # Changes to be committed: # (use "git restore --staged ..." to unstage) # modified: .config/zsh/config/themes/init.zsh --- .config/zsh/config/themes/init.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/zsh/config/themes/init.zsh b/.config/zsh/config/themes/init.zsh index 5357180..1e91229 100644 --- a/.config/zsh/config/themes/init.zsh +++ b/.config/zsh/config/themes/init.zsh @@ -10,12 +10,16 @@ # omz. configure() { + 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 local wkdir="${BASE_ZSH_CONFIG_DIR}/config/themes" source "${wkdir}/config.zsh" } init() { local wkdir="${BASE_ZSH_CONFIG_DIR}/config/themes" + configure source "${wkdir}/powerlevel10k/powerlevel10k.zsh-theme" }