Last active
August 29, 2015 14:15
-
-
Save diginc/f4527d2ed93b03fa4ae2 to your computer and use it in GitHub Desktop.
History options in bashrc ubuntu default file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ grep -ri hist ~/.bashrc | grep -v alias | |
# don't put duplicate lines or lines starting with space in the history. | |
#HISTCONTROL=ignoreboth | |
# append to the history file, don't overwrite it | |
shopt -s histappend | |
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) | |
#HISTSIZE=1000 | |
#HISTFILESIZE=2000 | |
export HISTSIZE=100000 | |
export HISTFILESIZE=50000 | |
export HISTCONTROL=ignoredups | |
export PROMPT_COMMAND="history -a; history -n; $PROMPT_COMMAND" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment