diff options
author | A Farzat <a@farzat.xyz> | 2024-11-13 23:46:30 +0100 |
---|---|---|
committer | A Farzat <a@farzat.xyz> | 2024-11-14 00:47:31 +0100 |
commit | dca3c306a5e3e7af0b6052a21ab2737900767171 (patch) | |
tree | 6df30b7dd0863ce14c33072bbeeddd9aa59c4936 | |
parent | 2e1979ca24c13bb04c8ecd5fe09e01678f40e53e (diff) | |
download | dotfiles-dca3c306a5e3e7af0b6052a21ab2737900767171.tar.gz dotfiles-dca3c306a5e3e7af0b6052a21ab2737900767171.zip |
Only apply wal theme in zsh if available
-rw-r--r-- | .config/zsh/halfway/general.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
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' |