From: Simon Ruderich Date: Fri, 15 Jul 2016 13:17:03 +0000 (+0200) Subject: setup.sh: add support for OpenBSD's colorls X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=9f7e689c44c7c7c2d0c6953ad23f003b6a55e1a5;p=config%2Fdotfiles.git setup.sh: add support for OpenBSD's colorls --- 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'