add comments and fix BSD ls typo
This commit is contained in:
parent
b28cdf2f13
commit
be99dc0971
@ -8,6 +8,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
if (( ${+commands[dircolors]} )); then
|
if (( ${+commands[dircolors]} )); then
|
||||||
|
# GNU
|
||||||
if [[ -s ${HOME}/.dir_colors ]]; then
|
if [[ -s ${HOME}/.dir_colors ]]; then
|
||||||
eval "$(dircolors --sh ${HOME}/.dir_colors)"
|
eval "$(dircolors --sh ${HOME}/.dir_colors)"
|
||||||
else
|
else
|
||||||
@ -17,11 +18,13 @@ if (( ${+commands[dircolors]} )); then
|
|||||||
alias ls='ls --group-directories-first --color=auto'
|
alias ls='ls --group-directories-first --color=auto'
|
||||||
|
|
||||||
else
|
else
|
||||||
# if we can't call dircolors, use generic preset
|
# BSD
|
||||||
|
|
||||||
|
# colors for ls and completion
|
||||||
export LSCOLORS='exfxcxdxbxGxDxabagacad'
|
export LSCOLORS='exfxcxdxbxGxDxabagacad'
|
||||||
export LS_COLORS='di=34:ln=35:so=32:pi=33:ex=31:bd=36;01:cd=33;01:su=31;40;07:sg=36;40;07:tw=32;40;07:ow=33;40;07:'
|
export LS_COLORS='di=34:ln=35:so=32:pi=33:ex=31:bd=36;01:cd=33;01:su=31;40;07:sg=36;40;07:tw=32;40;07:ow=33;40;07:'
|
||||||
|
|
||||||
alias ls='ls-G'
|
alias ls='ls -G'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user