diff --git a/zsh/.zshrc b/zsh/.zshrc index c91c2f8..ac21810 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -29,10 +29,12 @@ wd () { fpath=($ZDOTDIR/modules/wd $fpath) # theme -source $ZDOTDIR/p10k.zsh -source $ZDOTDIR/modules/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" +if [ ! $_P9K_TTY = '/dev/tty.*' ]; then + source $ZDOTDIR/p10k.zsh + source $ZDOTDIR/modules/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" + fi fi # local settings