Posted By

fyrebase on 09/21/10


Tagged

Bash bashrc


Versions (?)

.bashrc


 / Published in: Bash
 

  1. shopt -s cmdhist
  2. shopt -s histappend
  3.  
  4. # suppress history recording for the specified commands including commands beginning with a space
  5. export HISTIGNORE="&:[ \t]*:ls:[bf]g:history*:clear:exit"
  6.  
  7. #export HISTCONTROL=ignorespace
  8. export HISTCONTROL=ignoredups
  9. #export HISTCONTROL=ignoreboth

Report this snippet  

You need to login to post a comment.