summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2019-04-22 21:09:54 +0200
committerGitHub <noreply@github.com>2019-04-22 21:09:54 +0200
commitf46476589aa092f75f5911fa4d6f65401a8d3577 (patch)
tree144296b78f17be808db2771058874a47ae791237
parentebd13b60c107f424b40438404c18c3e8dc03433c (diff)
parentcfd30e9e5cfbc26ba838e61ed5b93ce116ed5f4a (diff)
downloadzsh-f46476589aa092f75f5911fa4d6f65401a8d3577.tar.gz
zsh-f46476589aa092f75f5911fa4d6f65401a8d3577.tar.bz2
zsh-f46476589aa092f75f5911fa4d6f65401a8d3577.zip
core: set up colored ls output in FreeBSD (#7787)
Fixes #7565
-rw-r--r--lib/theme-and-appearance.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/theme-and-appearance.zsh b/lib/theme-and-appearance.zsh
index 773b5972a..6b6528273 100644
--- a/lib/theme-and-appearance.zsh
+++ b/lib/theme-and-appearance.zsh
@@ -19,7 +19,7 @@ if [[ "$DISABLE_LS_COLORS" != "true" ]]; then
# coreutils, so prefer it to "gls".
gls --color -d . &>/dev/null && alias ls='gls --color=tty'
colorls -G -d . &>/dev/null && alias ls='colorls -G'
- elif [[ "$OSTYPE" == darwin* ]]; then
+ elif [[ "$OSTYPE" == (darwin|freebsd)* ]]; then
# this is a good alias, it works by default just using $LSCOLORS
ls -G . &>/dev/null && alias ls='ls -G'