p10k update

This commit is contained in:
Alexander 2024-07-26 16:30:17 +03:00
parent cd2c89282c
commit 7482175e83
No known key found for this signature in database
GPG key ID: D86E384919C1B9F0
3 changed files with 6 additions and 4 deletions

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "zsh/p10k"]
path = zsh/p10k
url = https://github.com/romkatv/powerlevel10k.git

1
zsh/p10k Submodule

@ -0,0 +1 @@
Subproject commit 62341054d8aa40ade03fc55bdbc95b9ff2d8d2b6

View file

@ -1,13 +1,10 @@
source ~/.config/zsh/antigen.zsh
if [[ ! -a ~/.zshrc.local ]]; then
source ~/.zshrc.local
fi
if command -v git >/dev/null && [ ! -d ~/.config/zsh/powerlevel10k ]; then
echo "info: installing p10k"
git clone --depth 1 --single-branch https://github.com/romkatv/powerlevel10k.git ~/.config/zsh/powerlevel10k
fi
source ~/.config/zsh/powerlevel10k/powerlevel10k.zsh-theme
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
@ -357,4 +354,5 @@ if [ -f env.sh ]; then
source ./env.sh
fi
[[ ! -f ~/.zshrc.local ]] || source ~/.zshrc.local
[[ ! -f ~/.config/zsh/p10k.zsh ]] || source ~/.config/zsh/p10k.zsh