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”

Comments are closed.