summaryrefslogtreecommitdiff
path: root/halfway/general.zsh
diff options
context:
space:
mode:
authorA Farzat <a@farzat.xyz>2024-11-05 15:06:59 +0900
committerA Farzat <a@farzat.xyz>2024-11-14 15:06:59 +0900
commit60a5e909d480f5a69521401f4d151331dc4ba33f (patch)
tree255e33f60e1ecf134a07cdfd1e1da4d2a2da59d7 /halfway/general.zsh
parente9c8cc0e27eca7aefd5522bd3b044797a1ec9a77 (diff)
downloadzsh-master.tar.gz
zsh-master.zip
Only apply wal colours if files existHEADmaster
Diffstat (limited to 'halfway/general.zsh')
-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'