From: Ian Kelling Date: Tue, 24 Feb 2026 12:15:42 +0000 (-0500) Subject: minor fix X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=bec5cc4e0c5592a0f7ff06a015823d1f153b0ad2;p=distro-setup minor fix --- 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