From: Alexander Barton Date: Sun, 28 Apr 2024 18:33:14 +0000 (+0200) Subject: ls: Add support for "lscolors.sh" X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bd3697fc22e33668d6ac781e253fd3d08278d51;p=ax-zsh.git ls: Add support for "lscolors.sh" --- diff --git a/default_plugins/ls/ls.zprofile b/default_plugins/ls/ls.zprofile index 897b16a..580b7cd 100644 --- a/default_plugins/ls/ls.zprofile +++ b/default_plugins/ls/ls.zprofile @@ -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 . + source ~/.local/share/lscolors.sh +elif (( $+commands[dircolors] )); then + # Use dircolors(1): eval $(dircolors) fi