From 9f7e689c44c7c7c2d0c6953ad23f003b6a55e1a5 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Fri, 15 Jul 2016 15:17:03 +0200 Subject: [PATCH] setup.sh: add support for OpenBSD's colorls --- setup.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.sh b/setup.sh index d3a85d5..eec1ded 100755 --- a/setup.sh +++ b/setup.sh @@ -90,6 +90,9 @@ elif ls -G >/dev/null 2>&1; then # Don't display hidden files by default when running as root (-I), I use # `la` for that. ls_args='CLICOLOR_FORCE=1 command ls -G -I' +# OpenBSD has no colored ls, use colorls instead. +elif colorls -G >/dev/null 2>&1; then + ls_args='CLICOLOR_FORCE=1 colorls -G' # Simple ls with no colors. else ls_args='command ls' -- 2.45.2