command stack in buffer

David Robert Lewis (ethnopunk) ethnopunk at telkomsa.net
Tue Jan 5 12:47:40 UTC 2010



Michael Welle wrote:
> Hi,
>
> Colin Law <clanlaw at googlemail.com> writes:
>
>   
>> 2010/1/5 Michael Welle <mwe012008 at gmx.net>:
>>     
>>> Hi,
>>>
>>> vijay shanker <vijay.shad at gmail.com> writes:
>>> [...]
>>>       
>>>>> Now that you raise the issue I am keen to try this solution from
>>>>> http://blog.macromates.com/2008/working-with-history-in-bash/:
>>>>>
>>>>> add to bashrc
>>>>>
>>>>> export HISTCONTROL=erasedups
>>>>> export HISTCONTROL=1000
>>>>>           
>> That should be HISTSIZE=1000, someone mis-read from the link.
>>     
> OK, haven't read the blog. If HISTCONTROL is set in the right manner it
> should work. I guess the OP 1) hasn't restart the shell or 2) bashrc
> isn't evaluated or HISTCONTROL is overriden or 3) he expects the history
> file is magically changed or 4) he can't copy and paste ;).
>
> Regards
> hmw
>
>   
Oops, sorry 4 the snafu, couldn't cut and paste. HISTSIZE=1000 should 
work. Tuping bash at the command should reset the shell and give you 
another instance of bash?

I see the default is set as
HISTCONTROL=ignoreboth

Does one change this to

HISTCONTROL=ignoredups

or

HISTCONTROL="&"

Which is better?

Thanks

DRL






More information about the ubuntu-users mailing list