From bec5cc4e0c5592a0f7ff06a015823d1f153b0ad2 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Tue, 24 Feb 2026 07:15:42 -0500 Subject: [PATCH] minor fix --- brc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brc b/brc index b47e4b8..05a44b5 100644 --- 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 -- 2.30.2