From 74b7c89c259d3df96dfe385f2a69973a660aefb7 Mon Sep 17 00:00:00 2001 From: Viyurz Date: Thu, 8 Aug 2024 12:54:32 +0200 Subject: [PATCH] [zsh] Don't source Pywal when in SSH session --- .config/zsh/.zshrc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 637d176..f1c4a0b 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -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