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

Better yet, `shopt -s 'histappend'` in your .bashrc and `chattr +a .bash_history`. This will still allow bash to add to the history, but it won't be able to trim the file.


Yes! And for macOS, `chflags uappnd .bash_history`




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

Search: