Prompt - X or no X.

This commit is contained in:
Bartek Stalewski 2021-05-21 00:48:47 +02:00
parent a673842a88
commit 603c9d2a51

View File

@ -29,10 +29,12 @@ wd () {
fpath=($ZDOTDIR/modules/wd $fpath) fpath=($ZDOTDIR/modules/wd $fpath)
# theme # theme
source $ZDOTDIR/p10k.zsh if [ ! $_P9K_TTY = '/dev/tty.*' ]; then
source $ZDOTDIR/modules/powerlevel10k/powerlevel10k.zsh-theme source $ZDOTDIR/p10k.zsh
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then source $ZDOTDIR/modules/powerlevel10k/powerlevel10k.zsh-theme
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" 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 fi
# local settings # local settings