# AX-ZSH: Alex' Modular ZSH Configuration
# ls.zshrc: Setup ls(1)
-# Is dircolors(1) available?
-if (( $+commands[dircolors] )); then
+if [[ -r ~/.local/share/lscolors.sh ]]; then
+ # Read lscolors.sh, which should set LS_COLORS;
+ # see <https://github.com/trapd00r/LS_COLORS>.
+ source ~/.local/share/lscolors.sh
+elif (( $+commands[dircolors] )); then
+ # Use dircolors(1):
eval $(dircolors)
fi
rm -f "$tmpfile"
# Wtite "stamp" file.
-[[ -w ~/ ]] && touch "$XDG_CACHE_HOME/axzsh_last_calendar"
+[[ -w "$XDG_CACHE_HOME" ]] && touch "$XDG_CACHE_HOME/axzsh_last_calendar"
unset bul bul_imp sep tmpfile
# Wtite "stamp" file.
-[[ -w ~/ ]] && touch "$XDG_CACHE_HOME/axzsh_last_reminder"
+[[ -w "$XDG_CACHE_HOME" ]] && touch "$XDG_CACHE_HOME/axzsh_last_reminder"
fi
# Wtite "stamp" file.
-[[ -w ~/ ]] && touch "$XDG_CACHE_HOME/axzsh_last_neofetch"
+[[ -w "$XDG_CACHE_HOME" ]] && touch "$XDG_CACHE_HOME/axzsh_last_neofetch"
remind -h -g -t5 ~/.remind && echo
# Wtite "stamp" file.
-[[ -w ~/ ]] && touch "$XDG_CACHE_HOME/axzsh_last_reminder"
+[[ -w "$XDG_CACHE_HOME" ]] && touch "$XDG_CACHE_HOME/axzsh_last_reminder"