Hacker News new | past | comments | ask | show | jobs | submit login

I couldn't really find a good reason to use a .bash_history. I linked mine to /dev/null and never looked back. (heh)



Ctrl+r history search? I'd tend to maintaining a complete history log so that when I've forgotten the one liner I used to rotate my videos 2 years ago I can easily recall it.


2 years? Just how big is your history file?

I thought 16k entries might be reasonable but that doesn't even last 3 weeks for me. I think there might have been some issue with slow disk seeks so at some point I restricted it to that many.

I guess it probably it would be better to regularly backup the history file to deal with possible some accidental truncations and issues when running multiple shells concurrently, but probably the overall effort to set up such a system would outweight the benefits.


export HISTSIZE=0




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: