Reply
Thread Tools
Posts: 20 | Thanked: 15 times | Joined on Dec 2009
#11
As for this:

Originally Posted by Bratag View Post
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?
 

The Following 2 Users Say Thank You to airjordan17 For This Useful Post:
Posts: 55 | Thanked: 72 times | Joined on Nov 2009
#12
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.
 

The Following 6 Users Say Thank You to josh For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 12:17.