Skip to content

Instantly share code, notes, and snippets.

@kimmel
Created August 20, 2012 07:23
Show Gist options
  • Save kimmel/3401826 to your computer and use it in GitHub Desktop.
Save kimmel/3401826 to your computer and use it in GitHub Desktop.
.bashrc history tracking
mkdir -p ~/.history
shopt -s histappend
shopt -s cmdhist
export HISTFILE=~/.history/`date +%Y-%m-%d`.hist
PROMPT_COMMAND="history -n;history -a"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment