You're viewing a comment by Peteris Krumins and its responses.

October 13, 2012, 15:36

I forgot that what gets ignored is configured through the HISTIGNORE variable. It contains a : separated values of command prefixes that should be ignored.

It looks like your distribution doesn't have a default value for this variable.

It should contain this:

export HISTIGNORE="[ ]*"

Meaning - don't log anything to history that starts with a space.

I've this in my .bashrc:

export HISTIGNORE="&:[ ]*"

Here & has a special meaning - ignore repeated commands.

Comment Responses

Gaurav Permalink
October 15, 2012, 11:06

hmm. it was hashed in my .bashrc now i have corrected it and it is working :)

September 23, 2013, 17:45

Red Flashy LED Sequin Fedora Snazzy Hat Lights Up! Red Hat Society By:

September 24, 2014, 17:55


awesomely written post. It really amazed me. The loading speed of the webpage is also great. SO, i enjoyed my visit here. Have a nice time ahead. Cheers

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the first letter of your name: (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.