~/.octaverc and OCTAVE_HISTSIZE

Mike Miller mbmiller+l at gmail.com
Mon Mar 9 10:30:11 CDT 2009


On Mon, 9 Mar 2009, Michael Goffioul wrote:

> AFAIK, ~/.octaverc is source'ed, so you can basically put any valid 
> octave command in it.

Ah!  So instead of setting the environment string, I just put this in the 
~/.octaverc and get the same effect:

history_size(20000)

Thanks very much!

Mike


> On Mon, Mar 9, 2009 at 2:44 PM, Mike Miller <mbmiller+l at gmail.com> wrote:
>
>> I have done a lot of searching but I come up relatively empty-handed. 
>>  I would have thought there would be a sample .octaverc somewhere out 
>> there, or some clear instruction on what sorts of things can go in the 
>> octaverc.
>>
>> I want to set OCTAVE_HISTSIZE to some value.  I tried this in the 
>> ~/.octaverc file but I think it was not doing what I want:
>>
>> OCTAVE_HISTSIZE=20000
>>
>> This worked from the bash command line:
>>
>> export OCTAVE_HISTSIZE=20000
>>
>> But I would prefer not to have to include that in the ~/.bashrc because 
>> it is octave-specific.  I think it should go on ~/.octaverc, but I 
>> don't know how that is supposed to be done.  So what's the trick? 
>> Thanks in advance.


More information about the Help-octave mailing list