3

I love using history from the command line to keep track of commands but I find its list to be a bit too short for my liking. Is there any way to change this?

7

In your ~/.bash_profile file, export the HISTSIZE variable to the desirable number of entries to save:

export HISTSIZE=5000
| improve this answer | |
0

You can increase the size of the history buffer by typing set history=100. If you put this in your ~/.bashrc then it will remain permanent.

| improve this answer | |
  • 2
    here is no .bashrc on OS X by default. I suggest .bash_profile instead. – Daniel Beck Jan 7 '11 at 20:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.