Re: selective command history

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Simon,

On 17 September 2010 05:22, Simon Andrews <simon.andrews@xxxxxxxxxxx> wrote:
> On 17/09/2010 00:46, suvayu ali wrote:
>> My use case is, to be able to use up arrow or be able to search
>> through my history with C-r for all the commands I type. But I want to
>> ignore the trivial day to day use commands to be ignored when the
>> history is written to the history file. If I set HISTIGNORE the
>> ignored commands also disappear from the interactive command history,
>> but without it my shell history file gets cluttered with all these day
>> to day commands.
>
> Set HISTIGNORE to 'ignorespace' and prefix any commands you want to
> ignore with a space.
>

That didn't work for me either. :(

$  tail -5 ~/.bash_history
 ls b*
 ls -d */
 ls -d */
whoami
exit
$ echo $HISTIGNORE
ignorespace

All the commands still show up.

> Simon.

-- 
Suvayu

Open source is the future. It sets us free.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux