minor fix
authorIan Kelling <ian@iankelling.org>
Tue, 24 Feb 2026 12:15:42 +0000 (07:15 -0500)
committerIan Kelling <ian@iankelling.org>
Tue, 24 Feb 2026 12:15:42 +0000 (07:15 -0500)
brc

diff --git a/brc b/brc
index b47e4b8a8fff45c1b1a33c8ff669c3470bc98f6c..05a44b5495e723e2d9817157e871ed7f4f7564ed 100644 (file)
--- a/brc
+++ b/brc
@@ -2349,10 +2349,10 @@ k() {
   histf1=${HISTFILE:-~/.bash_history}
   grep_out1=$(grep -iP --binary-files=text "$@" $histf1  | tail -n 80) || [[ $? == 1 ]]
   if [[ $EUID == 0 ]]; then
-    histf2="/home/iank/${histf1##*/}"
+    histf2="/home/iank/.bh"
     grep_out2=$(grep -iP --binary-files=text "$@" $histf2  | tail -n 80) || [[ $? == 1 ]]
   elif sudo -nv 2>/dev/null; then
-    histf2="/root/${histf1##*/}"
+    histf2="/root/.bh"
     grep_out2=$(sudo grep -iP --binary-files=text "$@" $histf2  | tail -n 80) || [[ $? == 1 ]]
   fi
   if [[ $grep_out1 && $grep_out2 ]]; then