Geeking Out

Multiple history files

We recently moved our server home directories to NFS. An unfortunate byproduct of this is that all of one’s .bash_history files are combined into a jumbled mess. To fix this I just created one new directory and added one new line to my .bashrc: export HISTFILE=~/.bash_history/`hostname -s`.hist Problem solved.

3 replies on “Multiple history files”

  1. What’s annoying to me is remembering which servers have been moved to NFS/LDAP and which have not, and knowing which passwords to type and where various things are. Conformity is king! 🙂

Comments are closed.