1
0
Fork 0
mirror of synced 2024-11-22 23:35:35 -05:00

[utility] completion uses LS_COLORS for all OSTYPEs

GNU colours are used by the completion module for all `OSTYPE`s, for
colouring the files in the menu. We had lost that for BSD after previous
changes to this module.
This commit is contained in:
Eric Nielsen 2018-04-05 10:19:14 -05:00
parent fd822d28bb
commit 2f0243e533

View file

@ -9,14 +9,13 @@
if (( terminfo[colors] >= 8 )); then if (( terminfo[colors] >= 8 )); then
# ls Colours # ls Colours
# GNU colours are used by completion module for all OSTYPEs
(( ! ${+LS_COLORS} )) && export LS_COLORS='di=1;34:ln=35:so=32:pi=33:ex=31:bd=1;36:cd=1;33:su=30;41:sg=30;46:tw=30;42:ow=30;43'
if (( ${+commands[dircolors]} )); then if (( ${+commands[dircolors]} )); then
# GNU # GNU
(( ! ${+LS_COLORS} )) && if [[ -s ${HOME}/.dir_colors ]]; then [[ -s ${HOME}/.dir_colors ]] && eval "$(dircolors --sh ${HOME}/.dir_colors)"
eval "$(dircolors --sh ${HOME}/.dir_colors)"
else
export LS_COLORS='di=1;34:ln=35:so=32:pi=33:ex=31:bd=1;36:cd=1;33:su=30;41:sg=30;46:tw=30;42:ow=30;43'
fi
alias ls='ls --group-directories-first --color=auto' alias ls='ls --group-directories-first --color=auto'