Skip to content

Instantly share code, notes, and snippets.

@cschneid
Created November 18, 2009 18:29
Show Gist options
  • Save cschneid/238124 to your computer and use it in GitHub Desktop.
Save cschneid/238124 to your computer and use it in GitHub Desktop.
### Make history behave itself
export HISTCONTROL=ignoredups # don't put duplicate lines in history
shopt -s histappend # make Bash append rather than overwrite history on disk
shopt -s cdspell # Help me get places
# write previous line to disk when prompt is displayed
export PROMPT_COMMAND='history -a'
export HISTFILESIZE=100000000
export HISTSIZE=10000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment