Is there a way to define an unlimited history in Bash ?
migrated from stackoverflow.com May 4 '10 at 12:06
|
put that into .bashrc:
There you go, unlimited history. Currently I have 27000 entries :) From "man bash":
That means .bash_history is never truncated Also the same seems to apply to HISTSIZE, although I couldnt find that documented. Another neat feature I'm going to try is this:
Let me know if you have tried that already... |
|||
|
|
|
Have you googled it?
|
|||||||||||||||||
|
|
A different concept (may not be applicable) but you can have |
|||
|
|
|
Yeah I don't think there is any way to have an 'unlimited' history, but doing as aioobe says should do the trick (although you may put it in .bashrc, either way would be fine) then simply restart bash or do source ~/.bashrc and check with set | grep HIST |
|||
|
|