Skip to content

Instantly share code, notes, and snippets.

@SuzanaK
Created January 22, 2013 00:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SuzanaK/4590905 to your computer and use it in GitHub Desktop.
Save SuzanaK/4590905 to your computer and use it in GitHub Desktop.
Useful entries in .bashrc
# do not save commands in history that are pwd or clear or that have only one or two letters or that are duplicates
export HISTIGNORE="pwd:clear:?:??:&"
# do not save sequences of duplicates or commands starting with a space
HISTCONTROL=ignoredups:ignorespace
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=100000
HISTFILESIZE=200000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment