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"