Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I go the opposite direction. I delete browser history on close. My BASH history isn’t reliable.

I am curious how having your history is your greatest force multiplier.



> I am curious how having your history is your greatest force multiplier.

Doing a ctrl + r to fuzzy search the history is very powerful. I could honestly not imagine working without that. Do you never have to type the same command twice, or re-use common commands?


I tend to just make a habit of memorizing commands that I repeatedly use. That or I make a script to automate it if I find myself repeating the same action.


I've seen somebody with a 1k+ lines long bashrc. They apparently put every useful command in there. Not sure how much better that approach is, I suppose it's similar to using bookmarks vs browsing history.


$ wc -l .zsh_history

   71114 .zsh_history


history != config file ;)

You'd have to compare your .zshrc to their .bashrc


If it is something I used recently, I use ctrl+R or up arrow, but if it’s not there anymore, I just retype. It’s not so bad for me.


Bash history does suck, at least out of the box. My history use has become consistent and frequent after I started using fish.


To set in your ~/.bashrc or ~/.bash_profile:

    export HISTTIMEFORMAT="%h %d %H:%M:%S "
    export HISTSIZE=100000
My ~/.bash_history averages 22 bytes per line.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: