diff options
author | Audric Schiltknecht <storm@chemicalstorm.org> | 2012-11-07 00:26:14 +0100 |
---|---|---|
committer | Audric Schiltknecht <storm@chemicalstorm.org> | 2012-11-07 00:26:14 +0100 |
commit | c4f7a47e02e61365d432e4195400ed89dab6b194 (patch) | |
tree | 09557517a80c23098f913884b3e3850e4caf9a5b /bash | |
parent | 1748e0ba6b5b128730f6792a7444235df0732679 (diff) | |
download | dotfiles-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/.bashrc | 5 |
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 |