# HG changeset patch # User Edho Arief # Date 1351878890 14400 # Node ID e5739479dc533f4fe3329db9093e267c9278b40b # Parent 660e9a148400643c58b813fe35565bddf224226f Prioritize colorls in openbsd. diff -r 660e9a148400 -r e5739479dc53 rc/bashrc --- 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)