]> arthur.barton.de Git - ax-zsh.git/blobdiff - default_plugins/ls/ls.zprofile
Correctly test XDG_CACHE_HOME for writability for "stamp files"
[ax-zsh.git] / default_plugins / ls / ls.zprofile
index 897b16a66a1400d4f32278b629b0a2b98b3c7868..580b7cd1abc14ed0702184af7d27c8c3af6d374c 100644 (file)
@@ -1,7 +1,11 @@
 # 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