628d0bb10664453fe55c1e725ab89fa42dc4ab0a

Author
rossmcf <ross@rossmcf.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

Fix ls colouring for Darwin. (#5516)

Diff

 1diff --git a/lib/theme-and-appearance.zsh b/lib/theme-and-appearance.zsh
 2index 039a59d2a33614de57053c85864f7f071c24a890..0fd3c44db38ec6f521a42bfa77a2f83168077184 100644
 3--- a/lib/theme-and-appearance.zsh
 4+++ b/lib/theme-and-appearance.zsh
 5@@ -6,7 +6,7 @@ export LSCOLORS="Gxfxcxdxbxegedabagacad"
 6 
 7 if [[ "$DISABLE_LS_COLORS" != "true" ]]; then
 8   # Find the option for using colors in ls, depending on the version
 9-  if [[ "$OSTYPE" == netbsd* ]]; then
10+  if [[ "$OSTYPE" == netbsd* ]] || [[ "$OSTYPE" == darwin* ]]; then
11     # On NetBSD, test if "gls" (GNU ls) is installed (this one supports colors);
12     # otherwise, leave ls as is, because NetBSD's ls doesn't support -G
13     gls --color -d . &>/dev/null && alias ls='gls --color=tty'