fix: properly load p10k

# On branch Development
# Your branch is up to date with 'origin/Development'.
#
# Changes to be committed:
#   (use "git restore --staged <file>..." to unstage)
# 	modified:   .config/zsh/config/themes/init.zsh
This commit is contained in:
Price Hiller 2022-07-30 19:25:07 -05:00
parent dccfdfa7b3
commit 5afc6a11e6

View File

@ -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"
}