From: Oleg Broytman Date: Tue, 9 Jul 2024 10:30:37 +0000 (+0300) Subject: .bashrc: Ignore spaces at the end of commands in `HISTIGNORE` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=44906867e3d59951a70c42f17df1ddabb1e8bf9e;p=dotfiles.git .bashrc: Ignore spaces at the end of commands in `HISTIGNORE` --- 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