Skip to content

Instantly share code, notes, and snippets.

@logic
Created April 7, 2011 01:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save logic/906847 to your computer and use it in GitHub Desktop.
Save logic/906847 to your computer and use it in GitHub Desktop.
# Append to /root/.bashrc
[ ! -d $HOME/.history ] && mkdir $HOME/.history
set -- `/usr/bin/who -m`
HISTFILE="$HOME/.history/`/bin/date +%Y-%m-%d.%T`.`/bin/hostname -s`.$$.$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment