Use vivid if available to manage LS_COLORS

This commit is contained in:
gardouille 2023-05-09 15:53:34 +02:00
parent 8074f6f26b
commit c1c64a82b5
Signed by: gardouille
GPG Key ID: E759BAA22501AF32
1 changed files with 7 additions and 2 deletions

9
zshrc
View File

@ -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 #