Mercurial > ec-dotfiles
comparison 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 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 406:660e9a148400 | 407:e5739479dc53 | 
|---|---|
| 117 alias man="man -o" | 117 alias man="man -o" | 
| 118 # Multi CPU awesomeness. | 118 # Multi CPU awesomeness. | 
| 119 alias top="top -P" | 119 alias top="top -P" | 
| 120 ;; | 120 ;; | 
| 121 OpenBSD) | 121 OpenBSD) | 
| 122 if command -v gls > /dev/null 2>&1; then | 122 # GNU ls is broken in 5.2. Prioritize colorls instead. | 
| 123 if command -v colorls > /dev/null 2>&1; then | |
| 124 alias ls="colorls -F" | |
| 125 elif command -v gls > /dev/null 2>&1; then | |
| 123 _has_gnu_ls=y | 126 _has_gnu_ls=y | 
| 124 _ls="gls" | 127 _ls="gls" | 
| 125 elif command -v colorls > /dev/null 2>&1; then | |
| 126 alias ls="colorls -F" | |
| 127 fi | 128 fi | 
| 128 ;; | 129 ;; | 
| 129 NetBSD|DragonFly) | 130 NetBSD|DragonFly) | 
| 130 if command -v gls > /dev/null 2>&1; then | 131 if command -v gls > /dev/null 2>&1; then | 
| 131 _has_gnu_ls=y | 132 _has_gnu_ls=y | 
