From cca28fe14549bfac6a49634baeeceebde05ac113 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 18 Jun 2018 04:36:55 +0300 Subject: .bashrc: export HISTCONTROL=ignoredups --- %HOME%/.bashrc | 3 +++ 1 file changed, 3 insertions(+) (limited to '%HOME%') diff --git a/%HOME%/.bashrc b/%HOME%/.bashrc index 530d3d8..95df1e6 100644 --- a/%HOME%/.bashrc +++ b/%HOME%/.bashrc @@ -13,6 +13,9 @@ PS1="\[\e[1;32m\]\h\[\e[m\] \[\e[1;34m\]\W\[\e[m\] # \[$(tput sgr0)\]" # `echo "!)"` doesn't work otherwise (namely, in third-party scripts): set +o histexpand +# Don't store duplicate commands. +export HISTCONTROL=ignoredups + # Too many third-party scripts stop working w/ nounset enabled :-( #set -o nounset -- cgit v1.2.3