From fcf1e381c22f5d8537669cc10e23400e258e09e9 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sat, 17 May 2014 22:32:20 +0300 Subject: [PATCH] .bashrc: Add common commands to HISTIGNORE Signed-off-by: Alan Orth --- .bashrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.bashrc b/.bashrc index 347ac59..b199715 100644 --- a/.bashrc +++ b/.bashrc @@ -18,6 +18,8 @@ TITLEBAR='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"' PROMPT_COMMAND="$TITLEBAR" # don't add commands starting with space to the history HISTCONTROL=ignorespace +# ignore common commands in bash history +HISTIGNORE='ls:bg:fg:history' # If a private bin directory exists, add it to PATH [[ -d ~/bin ]] && PATH="$PATH:~/bin"