X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=blobdiff_plain;f=setup.sh;h=eec1ded59a0911614c2f0586df54fa3b086c088c;hp=d3a85d5d7d0778e06288fefcacca96bd37ea573b;hb=9f7e689c44c7c7c2d0c6953ad23f003b6a55e1a5;hpb=33826e397bdecbdcef6d8d04b944733676b794e1 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'