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:
parent
dccfdfa7b3
commit
5afc6a11e6
@ -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"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user