[zsh] Don't source Pywal when in SSH session

This commit is contained in:
Viyurz 2024-08-08 12:54:32 +02:00
parent 1a4a0bbe18
commit 74b7c89c25
Signed by: Viyurz
SSH key fingerprint: SHA256:IskOHTmhHSJIvAt04N6aaxd5SZCVWW1Guf9tEcxIMj8

View file

@ -53,13 +53,10 @@ autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
zle -N up-line-or-beginning-search
zle -N down-line-or-beginning-search
# Import colorscheme from 'wal' asynchronously
# & # Run the process in the background.
# # ( ) # Hide shell job control messages.
# # Not supported in the "fish" shell.
(cat ~/.cache/wal/sequences &)
# # To add support for TTYs this line can be optionally added.
source ~/.cache/wal/colors-tty.sh
if [[ -z $SSH_TTY ]]; then
(cat ~/.cache/wal/sequences &)
# source ~/.cache/wal/colors-tty.sh
fi
# create a zkbd compatible hash;
# to add other keys to this hash, see: man 5 terminfo