]> git.phdru.name Git - dotfiles.git/commitdiff
.bashrc: Add alias `uh` to quickly unset `$HISTFILE`
authorOleg Broytman <phd@phdru.name>
Tue, 2 Jul 2024 22:29:33 +0000 (01:29 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 2 Jul 2024 22:29:33 +0000 (01:29 +0300)
.bashrc

diff --git a/.bashrc b/.bashrc
index 8c05ad26d5155c59cb452177b160c0db87364f96..f7896754a1f8c360dceda6ff661a2b3000304eb4 100644 (file)
--- 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,