You're replying to a comment by Peteris Krumins.

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.

Reply To This Comment

(why do I need your e-mail?)

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

Type the word "cloud": (just to make sure you're a human)

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