help-octave
[Top][All Lists]
Advanced

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

Re: ~/.octaverc and OCTAVE_HISTSIZE


From: Mike Miller
Subject: Re: ~/.octaverc and OCTAVE_HISTSIZE
Date: Mon, 9 Mar 2009 10:30:11 -0500 (CDT)
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)

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 <address@hidden> 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.

reply via email to

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