Skip to content

Instantly share code, notes, and snippets.

@charlesmims
Created May 16, 2016 18:21
Show Gist options
  • Save charlesmims/0ac19ce03407f65e08e2f8d572438df2 to your computer and use it in GitHub Desktop.
Save charlesmims/0ac19ce03407f65e08e2f8d572438df2 to your computer and use it in GitHub Desktop.
Add the following to your ~/.bashrc and your bash history will be saved to a coherent, time-stamped, persistant history file.
shopt -s histappend
export HISTIGNORE=ignoreboth
export HISTFILESIZ=1000000
export HISTSIZE=1000000
export HISTTIMEFORMAT='%F %T '
export PROMPT_COMMAND='history -a'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment