From c1c64a82b5ff0d72890af0feaf603d5c5c8d5e92 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Tue, 9 May 2023 15:53:34 +0200 Subject: [PATCH] Use vivid if available to manage LS_COLORS --- zshrc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/zshrc b/zshrc index dc13f8a..0b48c54 100644 --- a/zshrc +++ b/zshrc @@ -1683,7 +1683,12 @@ case $TERM in esac # Gestion de la couleur pour 'ls' (exportation de LS_COLORS) -if [ -x /usr/bin/dircolors ] +# First, use vivid {{{ +if [ $(command -v vivid) ]; then + export LS_COLORS="$(vivid generate dracula)" +# }}} +# Second, use dircolors {{{ +elif [ -x /usr/bin/dircolors ] then if [ -r ~/.dir_colors ] then @@ -1695,7 +1700,7 @@ then eval "`dircolors`" fi fi - +# }}} ####################################### # 3. Comportement ligne de commandes #