From eeefad93be60c45ab57ae9dcd997d02cf224fd8a Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 3 Jul 2024 01:29:33 +0300 Subject: [PATCH] .bashrc: Add alias `uh` to quickly unset `$HISTFILE` --- .bashrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.bashrc b/.bashrc index 8c05ad2..f789675 100644 --- a/.bashrc +++ b/.bashrc @@ -37,6 +37,8 @@ esac if [ "$HISTFILE" = "$HOME/.bash_history" ]; then history -r unset HISTFILE +else + alias uh="unset HISTFILE; unalias uh" fi # check the window size after each command and, if necessary, -- 2.39.5