diff options
author | rossmcf <ross@rossmcf.com> | 2016-10-10 15:42:55 +0100 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2016-10-10 23:08:54 +0200 |
commit | 628d0bb10664453fe55c1e725ab89fa42dc4ab0a (patch) | |
tree | e19c30b59234aaa3dc171f6edd6260050e96d07b /lib/theme-and-appearance.zsh | |
parent | f7d4f985ac391e4532a5e6331e0c296fad4a913c (diff) | |
download | zsh-628d0bb10664453fe55c1e725ab89fa42dc4ab0a.tar.gz zsh-628d0bb10664453fe55c1e725ab89fa42dc4ab0a.tar.bz2 zsh-628d0bb10664453fe55c1e725ab89fa42dc4ab0a.zip |
Fix ls colouring for Darwin. (#5516)
Diffstat (limited to 'lib/theme-and-appearance.zsh')
-rw-r--r-- | lib/theme-and-appearance.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/theme-and-appearance.zsh b/lib/theme-and-appearance.zsh index 039a59d2a..0fd3c44db 100644 --- a/lib/theme-and-appearance.zsh +++ b/lib/theme-and-appearance.zsh @@ -6,7 +6,7 @@ export LSCOLORS="Gxfxcxdxbxegedabagacad" if [[ "$DISABLE_LS_COLORS" != "true" ]]; then # Find the option for using colors in ls, depending on the version - if [[ "$OSTYPE" == netbsd* ]]; then + if [[ "$OSTYPE" == netbsd* ]] || [[ "$OSTYPE" == darwin* ]]; then # On NetBSD, 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 && alias ls='gls --color=tty' |