Use packaged p10k on arch systems
This commit is contained in:
parent
6ca2707828
commit
c11c355246
1 changed files with 6 additions and 1 deletions
7
.zshrc
7
.zshrc
|
@ -14,7 +14,12 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
|
|||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||
fi
|
||||
|
||||
source ~/.p10k/powerlevel10k.zsh-theme
|
||||
# Archlinux packages p10k but nothing else does, so we have to check where p10k is
|
||||
if [[ -a /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme ]]; then
|
||||
source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
|
||||
else
|
||||
source ~/.p10k/powerlevel10k.zsh-theme
|
||||
fi
|
||||
|
||||
# Print user@host into title so terminal tabs are correct
|
||||
# Despite being called precmd() this executes after process exits, before prompt
|
||||
|
|
Loading…
Add table
Reference in a new issue