summaryrefslogtreecommitdiffstats
path: root/bash
diff options
context:
space:
mode:
authorAudric Schiltknecht <storm@chemicalstorm.org>2012-11-07 00:26:14 +0100
committerAudric Schiltknecht <storm@chemicalstorm.org>2012-11-07 00:26:14 +0100
commitc4f7a47e02e61365d432e4195400ed89dab6b194 (patch)
tree09557517a80c23098f913884b3e3850e4caf9a5b /bash
parent1748e0ba6b5b128730f6792a7444235df0732679 (diff)
downloaddotfiles-c4f7a47e02e61365d432e4195400ed89dab6b194.tar.gz
dotfiles-c4f7a47e02e61365d432e4195400ed89dab6b194.tar.bz2
dotfiles-c4f7a47e02e61365d432e4195400ed89dab6b194.zip
Ignore lines starting with space in bash history
Diffstat (limited to 'bash')
-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