Can you share wisdom on using HISTIGNORE in bash?

Posted by sage on Super User See other posts from Super User or by sage
Published on 2011-01-13T19:55:12Z Indexed on 2011/01/13 19:55 UTC
Read the original article Hit count: 239

Filed under:
|

I was reading the manpages for bash on the plane and I stumbled across the HISTIGNORE variable. To test it out, I immediately edited my .profile to define this variable:

export HISTIGNORE=ls

I tested it out and this is great! It excludes plain 'ls' commands from my history without excluding more interesting commands with lengthy paths, but having recently harvested a great deal of wisdom from SU I am eager to know what other commands superusers might recommend or other lessons learned.

What can you share about using the HISTIGNORE variable in bash?

(Note: I'm about to board my next flight and I have obligations upon arrival, so I will be absent for a number of hours before I can respond to comments...)

© Super User or respective owner

Related posts about bash

Related posts about terminal