aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2018-06-18 04:36:55 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2018-06-18 04:36:55 +0300
commitcca28fe14549bfac6a49634baeeceebde05ac113 (patch)
tree48e56c02dcacd23edca531d765b6202204e08b98
parent.bashrc: re-introduce the ssh-copy-id alias (diff)
downloadlinux-home-cca28fe14549bfac6a49634baeeceebde05ac113.tar.gz
linux-home-cca28fe14549bfac6a49634baeeceebde05ac113.zip
.bashrc: export HISTCONTROL=ignoredups
Diffstat (limited to '')
-rw-r--r--%HOME%/.bashrc3
1 files changed, 3 insertions, 0 deletions
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