From eca23875861c2a26b8223a7fa73f20708bbe11d8 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Mon, 5 Aug 2013 15:25:50 +0300 Subject: [PATCH] .bashrc: Use HISTCONTROL to ignore commands starting with a space --- .bashrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.bashrc b/.bashrc index 590aa9c..84bf8df 100644 --- a/.bashrc +++ b/.bashrc @@ -17,6 +17,8 @@ export PAGER=/usr/bin/less TITLEBAR='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"' # Aggressive read/write of history after every command PROMPT_COMMAND="$TITLEBAR; history -a; history -n" +# don't add commands starting with space to the history +HISTCONTROL=ignorespace # If a private bin directory exists, add it to PATH [[ -d ~/bin ]] && PATH="$PATH:~/bin"