selective command history

suvayu ali fatkasuvayu+linux at gmail.com
Fri Sep 17 18:54:19 UTC 2010


Hi everyone,

Found it!

On 17 September 2010 11:47, suvayu ali <fatkasuvayu+linux at gmail.com> wrote:
>> Set HISTIGNORE to 'ignorespace' and prefix any commands you want to
>> ignore with a space.
>>
>
> That didn't work for me either. :(
>

Set HISTCONTROL to "ignorespace" to achieve the above. :)

And if you want to ignore duplicate entries, then you can use
"ignoredupes". To choose both simultaneously, use "ignoreboth".

Hope this helps. :)

Thank you all who replied. Your replies pointed me in the right direction.

-- 
Suvayu

Open source is the future. It sets us free.


More information about the users mailing list