Skip to content

Instantly share code, notes, and snippets.

@mhoffman
Created November 9, 2017 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhoffman/07063f288ea29e8095739483b0370d1e to your computer and use it in GitHub Desktop.
Save mhoffman/07063f288ea29e8095739483b0370d1e to your computer and use it in GitHub Desktop.
export HISTIGNORE="&:ls:[bf]g:[cb]d:b:exit:[ ]*"
@mhoffman
Copy link
Author

mhoffman commented Nov 9, 2017

Keep some very frequent commands from entering your bash history. Also, any command starting with a space (' ') will not be stored. Handy for entering sensitive information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment