summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bash/.bashrc5
1 files changed, 3 insertions, 2 deletions
diff --git a/bash/.bashrc b/bash/.bashrc
index 301f9ac..39508c5 100644
--- a/bash/.bashrc
+++ b/bash/.bashrc
@@ -5,8 +5,9 @@
# If not running interactively, don't do anything:
[ -z "$PS1" ] && return
-# don't put duplicate lines in the history. See bash(1) for more options
-export HISTCONTROL=ignoredups
+# don't put duplicate lines in the history, not lines starting white space.
+# See bash(1) for more options
+export HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend