Use vivid if available to manage LS_COLORS

This commit is contained in:
Jeremy Gardais 2023-05-09 15:53:34 +02:00
parent 8074f6f26b
commit c1c64a82b5
Signed by: jegardai
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 esac
# Gestion de la couleur pour 'ls' (exportation de LS_COLORS) # 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 then
if [ -r ~/.dir_colors ] if [ -r ~/.dir_colors ]
then then
@ -1695,7 +1700,7 @@ then
eval "`dircolors`" eval "`dircolors`"
fi fi
fi fi
# }}}
####################################### #######################################
# 3. Comportement ligne de commandes # # 3. Comportement ligne de commandes #