[utility] Revert "completion uses LS_COLORS for all OSTYPEs"
This reverts commit 2f0243e533
.
Completion module does not depend on utility module anymore to set the
zstyle list-colors. Making modules independent from each other as much
as possible is a good thing.
This commit is contained in:
parent
e70bee54f3
commit
17b41952ce
1 changed files with 5 additions and 4 deletions
|
@ -9,13 +9,14 @@
|
||||||
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
|
||||||
|
|
||||||
[[ -s ${HOME}/.dir_colors ]] && eval "$(dircolors --sh ${HOME}/.dir_colors)"
|
(( ! ${+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
|
||||||
|
|
||||||
alias ls='ls --group-directories-first --color=auto'
|
alias ls='ls --group-directories-first --color=auto'
|
||||||
alias lx='ll -X' # long format, sort by extension (GNU only)
|
alias lx='ll -X' # long format, sort by extension (GNU only)
|
||||||
|
|
Loading…
Reference in a new issue