1diff --git a/lib/theme-and-appearance.zsh b/lib/theme-and-appearance.zsh
2index aec67721a8414ba3386b4d2a9f87306235e3eb16..351ec22b00c775cd3ed7556f9f3c020d645a77ed 100644
3--- a/lib/theme-and-appearance.zsh
4+++ b/lib/theme-and-appearance.zsh
5@@ -7,7 +7,14 @@ export LSCOLORS="Gxfxcxdxbxegedabagacad"
6 if [ "$DISABLE_LS_COLORS" != "true" ]
7 then
8 # Find the option for using colors in ls, depending on the version: Linux or BSD
9- ls --color -d . &>/dev/null 2>&1 && alias ls='ls --color=tty' || alias ls='ls -G'
10+ if [[ "$(uname -s)" == "NetBSD" ]]
11+ then
12+ # On NetBSD, test if "gls" (GNU ls) is installed (this one supports colors);
13+ # otherwise, leave ls as is, because NetBSD's ls doesn't support -G
14+ gls --color -d . &>/dev/null 2>&1 && alias ls='gls --color=tty'
15+ else
16+ ls --color -d . &>/dev/null 2>&1 && alias ls='ls --color=tty' || alias ls='ls -G'
17+ fi
18 fi
1920 #setopt no_beep