Skip to content
Browse files

do not log blank commands in addition to duplicate ones

  • Loading branch information...
1 parent cea343c commit 9aa80697397fbbc6f1a8412c92ef531b12b6422d @matijs committed Jul 8, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 .bash_profile
View
3 .bash_profile
@@ -18,7 +18,8 @@ fi
# shell variables
export HISTSIZE=32768;
export HISTFILESIZE=$HISTSIZE;
-export HISTCONTROL=ignoredups;
+# don't log duplicate commands and blank commands
+export HISTCONTROL=ignoreboth;
# list of commands that should not be added to history
export HISTIGNORE="exit:[bf]g"
# make `vi` the default system editor

0 comments on commit 9aa8069

Please sign in to comment.
Something went wrong with that request. Please try again.