diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..d90739a --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "zsh/p10k"] + path = zsh/p10k + url = https://github.com/romkatv/powerlevel10k.git diff --git a/zsh/p10k b/zsh/p10k new file mode 160000 index 0000000..6234105 --- /dev/null +++ b/zsh/p10k @@ -0,0 +1 @@ +Subproject commit 62341054d8aa40ade03fc55bdbc95b9ff2d8d2b6 diff --git a/zsh/zshrc b/zsh/zshrc index 41beba3..0a175cb 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -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