Prompt - X or no X.

This commit is contained in:
Bartek Stalewski 2021-05-21 01:01:38 +02:00
parent f52bd39a52
commit c96188c9f3

View File

@ -29,7 +29,7 @@ wd () {
fpath=($ZDOTDIR/modules/wd $fpath) fpath=($ZDOTDIR/modules/wd $fpath)
# theme # theme
if [ ! $_P9K_TTY = '/dev/tty.*' ] || [ -n $SSH_TTY ]; then if [[ ! $(tty) =~ "/dev/tty.*" ]]; then
source $ZDOTDIR/p10k.zsh source $ZDOTDIR/p10k.zsh
source $ZDOTDIR/modules/powerlevel10k/powerlevel10k.zsh-theme source $ZDOTDIR/modules/powerlevel10k/powerlevel10k.zsh-theme
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then