diff 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
line wrap: on
line diff
--- a/rc/bashrc	Sun Oct 23 01:46:56 2022 +0900
+++ b/rc/bashrc	Sun Oct 23 01:56:26 2022 +0900
@@ -148,12 +148,15 @@
     _has_gnu_grep=y
   ;;
   OpenBSD)
-    # 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
+    if 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
+    if command -v ggrep > /dev/null 2>&1; then
+      _has_gnu_grep=y
+      _grep="ggrep"
     fi
   ;;
   NetBSD|DragonFly)