From 44906867e3d59951a70c42f17df1ddabb1e8bf9e Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 9 Jul 2024 13:30:37 +0300 Subject: [PATCH] .bashrc: Ignore spaces at the end of commands in `HISTIGNORE` --- .bashrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.bashrc b/.bashrc index 84de078..3675eb4 100644 --- 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 -- 2.39.5