Ignore leading spaces and duplicates in bash history

This commit is contained in:
Anthony Rose 2021-01-22 15:29:22 +00:00
parent faf5a11d8f
commit ac27099675

View file

@ -99,6 +99,7 @@ if test -x /usr/bin/tty; then
fi fi
if [ "$BASH" ]; then if [ "$BASH" ]; then
HISTCONTROL=ignorespace:ignoredups
shopt -s histappend shopt -s histappend
bind '"\e[1;5C": forward-word' bind '"\e[1;5C": forward-word'
bind '"\e[1;5D": backward-word' bind '"\e[1;5D": backward-word'