core: set up colored ls output in FreeBSD (#7787)
Fixes #7565
Diff
1diff --git a/lib/theme-and-appearance.zsh b/lib/theme-and-appearance.zsh
2index 773b5972aed36c26f61481f2ebd11d2392995129..6b652827319ebea441ee89fd8a781c67d3a09796 100644
3--- a/lib/theme-and-appearance.zsh
4+++ b/lib/theme-and-appearance.zsh
5@@ -19,7 +19,7 @@ if [[ "$DISABLE_LS_COLORS" != "true" ]]; then
6 # coreutils, so prefer it to "gls".
7 gls --color -d . &>/dev/null && alias ls='gls --color=tty'
8 colorls -G -d . &>/dev/null && alias ls='colorls -G'
9- elif [[ "$OSTYPE" == darwin* ]]; then
10+ elif [[ "$OSTYPE" == (darwin|freebsd)* ]]; then
11 # this is a good alias, it works by default just using $LSCOLORS
12 ls -G . &>/dev/null && alias ls='ls -G'
13