From dca3c306a5e3e7af0b6052a21ab2737900767171 Mon Sep 17 00:00:00 2001
From: A Farzat <a@farzat.xyz>
Date: Wed, 13 Nov 2024 23:46:30 +0100
Subject: Only apply wal theme in zsh if available

---
 .config/zsh/halfway/general.zsh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to '.config/zsh/halfway')

diff --git a/.config/zsh/halfway/general.zsh b/.config/zsh/halfway/general.zsh
index 909c13f..6b81fb9 100644
--- a/.config/zsh/halfway/general.zsh
+++ b/.config/zsh/halfway/general.zsh
@@ -1,9 +1,9 @@
 # Run the sequences in the current terminal to apply the theme.
 # The first is synchronous, the second is asynchronous.
-cat ~/.cache/wal/sequences;
+[ -f "$XDG_CACHE_HOME/wal/sequences" ] && cat "$XDG_CACHE_HOME/wal/sequences"
 # (cat ~/.cache/wal/sequences &);
 # To add support for TTYs this line can be optionally added.
-source ~/.cache/wal/colors-tty.sh
+[ -f "$XDG_CACHE_HOME/wal/colors-tty.sh" ] && source "$XDG_CACHE_HOME/wal/colors-tty.sh"
 # Attempts to restore the cursor colour - harmless, usually doesn't work
 # but sometimes it is actually the only thing that works.
 printf '%b' '\e]12'
-- 
cgit v1.2.3-70-g09d2