summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--halfway/general.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/halfway/general.zsh b/halfway/general.zsh
index 909c13f..6b81fb9 100644
--- a/halfway/general.zsh
+++ b/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'