diff --git a/modules/utility/init.zsh b/modules/utility/init.zsh index b8083b7..daf5ba7 100644 --- a/modules/utility/init.zsh +++ b/modules/utility/init.zsh @@ -9,14 +9,13 @@ if (( terminfo[colors] >= 8 )); then # 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 # GNU - (( ! ${+LS_COLORS} )) && if [[ -s ${HOME}/.dir_colors ]]; then - 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 + [[ -s ${HOME}/.dir_colors ]] && eval "$(dircolors --sh ${HOME}/.dir_colors)" alias ls='ls --group-directories-first --color=auto'