Revert "fix typo'd var; otherwise colors would never apply"
This reverts commit abbeeb9d37
.
That was not a typo
This commit is contained in:
parent
abbeeb9d37
commit
4004d109cf
1 changed files with 4 additions and 1 deletions
|
@ -6,10 +6,12 @@
|
||||||
# Colours
|
# Colours
|
||||||
#
|
#
|
||||||
|
|
||||||
if (( ${terminfo[colors]} >= 8 )); then
|
if (( terminfo[colors] >= 8 )); then
|
||||||
if [[ ${OSTYPE} == (*bsd*|darwin*) ]]; then
|
if [[ ${OSTYPE} == (*bsd*|darwin*) ]]; then
|
||||||
# BSD
|
# BSD
|
||||||
|
|
||||||
(( ! ${+LSCOLORS} )) && export LSCOLORS='exfxcxdxbxGxDxabagacad'
|
(( ! ${+LSCOLORS} )) && export LSCOLORS='exfxcxdxbxGxDxabagacad'
|
||||||
|
|
||||||
if [[ ${OSTYPE} == openbsd* ]]; then
|
if [[ ${OSTYPE} == openbsd* ]]; then
|
||||||
# stock OpenBSD ls does not support colours at all, but colorls does.
|
# stock OpenBSD ls does not support colours at all, but colorls does.
|
||||||
if (( ${+commands[colorls]} )); then
|
if (( ${+commands[colorls]} )); then
|
||||||
|
@ -22,6 +24,7 @@ if (( ${terminfo[colors]} >= 8 )); then
|
||||||
(( ! ${+GREP_COLOR} )) && export GREP_COLOR='37;45'
|
(( ! ${+GREP_COLOR} )) && export GREP_COLOR='37;45'
|
||||||
else
|
else
|
||||||
# GNU
|
# GNU
|
||||||
|
|
||||||
(( ! ${+LS_COLORS} )) && if [[ ${+commands[dircolors]} -ne 0 && -s ${HOME}/.dir_colors ]]; then
|
(( ! ${+LS_COLORS} )) && if [[ ${+commands[dircolors]} -ne 0 && -s ${HOME}/.dir_colors ]]; then
|
||||||
eval "$(dircolors --sh ${HOME}/.dir_colors)"
|
eval "$(dircolors --sh ${HOME}/.dir_colors)"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue