comparison rc/bashrc @ 692:a04ba615362c

[bashrc] back to prioritizing gnuls for openbsd It should be fixed by now...? Can't remember what the problem was though.
author nanaya <me@nanaya.pro>
date Sun, 23 Oct 2022 01:56:26 +0900
parents 7dda86be7a60
children 37a2470380f2
comparison
equal deleted inserted replaced
691:7dda86be7a60 692:a04ba615362c
146 alias top="top -P" 146 alias top="top -P"
147 # FreeBSD grep is GNU grep 147 # FreeBSD grep is GNU grep
148 _has_gnu_grep=y 148 _has_gnu_grep=y
149 ;; 149 ;;
150 OpenBSD) 150 OpenBSD)
151 # GNU ls is broken in 5.2. Prioritize colorls instead. 151 if command -v gls > /dev/null 2>&1; then
152 if command -v colorls > /dev/null 2>&1; then
153 alias ls="colorls -F"
154 elif command -v gls > /dev/null 2>&1; then
155 _has_gnu_ls=y 152 _has_gnu_ls=y
156 _ls="gls" 153 _ls="gls"
154 elif command -v colorls > /dev/null 2>&1; then
155 alias ls="colorls -F"
156 fi
157 if command -v ggrep > /dev/null 2>&1; then
158 _has_gnu_grep=y
159 _grep="ggrep"
157 fi 160 fi
158 ;; 161 ;;
159 NetBSD|DragonFly) 162 NetBSD|DragonFly)
160 if command -v gls > /dev/null 2>&1; then 163 if command -v gls > /dev/null 2>&1; then
161 _has_gnu_ls=y 164 _has_gnu_ls=y