maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Xterm does not saved all executed commands (https://talk.maemo.org/showthread.php?t=37178)

airjordan17 2009-12-14 22:09

Re: Xterm does not saved all executed commands
 
As for this:

Quote:

Originally Posted by Bratag (Post 427499)
Chances are your history is set to a small number and its only saving the last 10 commands or so - you can tweak that in your profile.

The default appears to be 15 lines of history, as that is the largest my .ash_history file gets. What should I add to my .profile (or .ashrc) to change the lines of history stored? I tried setting HISTSIZE=100 in .profile but that doesn't seem to do it.

I noticed that $HISTFILE is set to /home/user/.ash_history, but $HISTSIZE is not initialized by default. Is it a different variable in ash?

josh 2009-12-16 00:41

Re: Xterm does not saved all executed commands
 
I can confirm that ash only saves 15 lines of history. This still proves useful, but given 2GB of space for /home, I'd rather store a few thousand. :)

I looked into it, and it seems that this gets set at compile time, not runtime. As far as I can tell, no means exists to set this at runtime. Thus, I've filed bug 7014, asking for this limit to increase or become dynamic.


All times are GMT. The time now is 19:19.

vBulletin® Version 3.8.8