Mercurial > ec-dotfiles
changeset 407:e5739479dc53
Prioritize colorls in openbsd.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Fri, 02 Nov 2012 13:54:50 -0400 |
parents | 660e9a148400 |
children | baf2dd1cc56c |
files | rc/bashrc |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/rc/bashrc Sun Oct 28 20:07:40 2012 +0700 +++ b/rc/bashrc Fri Nov 02 13:54:50 2012 -0400 @@ -119,11 +119,12 @@ alias top="top -P" ;; OpenBSD) - if command -v gls > /dev/null 2>&1; then + # GNU ls is broken in 5.2. Prioritize colorls instead. + if command -v colorls > /dev/null 2>&1; then + alias ls="colorls -F" + elif command -v gls > /dev/null 2>&1; then _has_gnu_ls=y _ls="gls" - elif command -v colorls > /dev/null 2>&1; then - alias ls="colorls -F" fi ;; NetBSD|DragonFly)