mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-20 03:13:33 +01:00
Don't clobber default LSCOLORS, if DISABLE_LS_COLORS is set to true.
This commit is contained in:
parent
140034605e
commit
a069a22a9e
1 changed files with 1 additions and 1 deletions
|
|
@ -1,10 +1,10 @@
|
|||
# ls colors
|
||||
autoload -U colors && colors
|
||||
export LSCOLORS="Gxfxcxdxbxegedabagacad"
|
||||
|
||||
# Enable ls colors
|
||||
if [ "$DISABLE_LS_COLORS" != "true" ]
|
||||
then
|
||||
export LSCOLORS="Gxfxcxdxbxegedabagacad"
|
||||
# Find the option for using colors in ls, depending on the version: Linux or BSD
|
||||
if [[ "$(uname -s)" == "NetBSD" ]]; then
|
||||
# On NetBSD, test if "gls" (GNU ls) is installed (this one supports colors);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue