From ebaaa9565c008959fb0f4d830513e0766636e26a Mon Sep 17 00:00:00 2001 From: James Bunton Date: Tue, 5 Jun 2018 23:31:12 +1000 Subject: [PATCH] bash: don't save lines starting with space to history file --- .bash/interactive | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bash/interactive b/.bash/interactive index 27f5408..2606b36 100644 --- a/.bash/interactive +++ b/.bash/interactive @@ -107,7 +107,7 @@ set -o noclobber # Better history shopt -s histappend shopt -s cmdhist -export HISTCONTROL="erasedups:ignoredups" +export HISTCONTROL="erasedups:ignoredups:ignorespace" export HISTSIZE="100000" export HISTTIMEFORMAT="%F %T " -- 2.39.2