]> git.phdru.name Git - dotfiles.git/commitdiff
.bashrc: Ignore spaces at the end of commands in `HISTIGNORE`
authorOleg Broytman <phd@phdru.name>
Tue, 9 Jul 2024 10:30:37 +0000 (13:30 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 10 Jul 2024 13:01:57 +0000 (16:01 +0300)
.bashrc

diff --git a/.bashrc b/.bashrc
index 84de07809bca05d76efd7be31694d8fd44b1d37b..3675eb41e28cfedd110290406ccfb001edf1ab02 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -45,6 +45,10 @@ fi
 # update the values of LINES and COLUMNS.
 shopt -s checkwinsize
 
+# extended pattern matching, used in $HISTIGNORE
+shopt -s extglob
+HISTIGNORE='&: *:?*( ):??*( ):clear*( ):exit*( ):logout*( ):llp*( )'
+
 # If set, the pattern "**" used in a pathname expansion context will
 # match all files and zero or more directories and subdirectories.
 #shopt -s globstar