Skip to content

Instantly share code, notes, and snippets.

@kcarnold
Created March 29, 2013 17:06
Show Gist options
  • Save kcarnold/5272142 to your computer and use it in GitHub Desktop.
Save kcarnold/5272142 to your computer and use it in GitHub Desktop.
Shell history is valuable. Disk space is cheap. Store more history than bash's default.
# don't put duplicate lines in the history. See bash(1) for more options
HISTCONTROL=ignoredups:ignorespace
HISTIGNORE=ls:fg
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length, see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=10000
HISTFILESIZE=20000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment