Skip to content

Instantly share code, notes, and snippets.

@foca
Forked from cschneid/gist:238124
Created November 18, 2009 19:43
Show Gist options
  • Save foca/238179 to your computer and use it in GitHub Desktop.
Save foca/238179 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