Mercurial > ec-dotfiles
diff rc/bashrc @ 407:e5739479dc53
Prioritize colorls in openbsd.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Fri, 02 Nov 2012 13:54:50 -0400 |
parents | d0f9e435d36d |
children | fda660f86df3 |
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)