From: Oleg Broytman Date: Tue, 2 Jul 2024 22:29:33 +0000 (+0300) Subject: .bashrc: Add alias `uh` to quickly unset `$HISTFILE` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=eeefad93be60c45ab57ae9dcd997d02cf224fd8a;p=dotfiles.git .bashrc: Add alias `uh` to quickly unset `$HISTFILE` --- 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,