From 603c9d2a51f6b21f71fde66d44ad15b5f3c1aceb Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Fri, 21 May 2021 00:48:47 +0200 Subject: [PATCH] Prompt - X or no X. --- zsh/.zshrc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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