bug-bash
[Top][All Lists]
Advanced

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

Re: How to enable infinite command history


From: Pierre Gaston
Subject: Re: How to enable infinite command history
Date: Mon, 30 Jan 2012 20:16:51 +0200

On Mon, Jan 30, 2012 at 8:01 PM, Ivan Yosifov <iyosifov@gmail.com> wrote:
> Hi everyone,
>
> I got an admittedly basic question but I'm really at my wits' end with
> this.
>
> How do I enable infinite command history ?
>
> One simple suggestion I've seen online is to set HISTSIZE and
> HISTFILESIZE to a large number. This is not what I need, I want
> genuinely unconstrained history file growth.
>
> Another idea I've seen is to unset HISTSIZE and HISTFILESIZE. This
> doesn't seem to work, the history file is being cropped to the default
> of 500 lines.
>
> I'm probably missing something obvious but any help is appreciated. I'm
> running Bash 4.1.5 (Debian Squeeze).

I don't think there is a way.
But do you plan to use bash normally?
Setting HISTFILESIZE to 2147483647 gives you 68 years of history at
one command per seconds
(I hope I got my math right)
with say 5 chars per commands it's something like 5GB of history.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]