mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
Merge 3dc8d07d6a into b0e4381471
This commit is contained in:
commit
312c67eda6
1 changed files with 2 additions and 2 deletions
|
|
@ -7,8 +7,8 @@ export LSCOLORS="Gxfxcxdxbxegedabagacad"
|
|||
if [ "$DISABLE_LS_COLORS" != "true" ]
|
||||
then
|
||||
# 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);
|
||||
if [[ "$(uname -s)" =~ "(NetBSD|Darwin)" ]]; then
|
||||
# On NetBSD and OS X, test if "gls" (GNU ls) is installed (this one supports colors);
|
||||
# otherwise, leave ls as is, because NetBSD's ls doesn't support -G
|
||||
gls --color -d . &>/dev/null 2>&1 && alias ls='gls --color=tty'
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue