diff --git a/zsh/.zshrc b/zsh/.zshrc index 0b9ea6e..3081acf 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -29,7 +29,7 @@ wd () { fpath=($ZDOTDIR/modules/wd $fpath) # theme -if [ ! $_P9K_TTY = '/dev/tty.*' ] || [ -n $SSH_TTY ]; then +if [[ ! $(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