diff options
author | Tristan Williams <tgwil@tgwil.net> | 2024-10-13 03:41:28 -0400 |
---|---|---|
committer | Tristan Williams <tgwil@tgwil.net> | 2024-10-13 03:41:28 -0400 |
commit | 5c56b0b753899221578626560e7599dd0a385aac (patch) | |
tree | 3cca0f532c2ec6a580069a6bde23ed432babdd19 /home | |
parent | Add ~/.bash_aliases (diff) | |
download | dotfiles.core-5c56b0b753899221578626560e7599dd0a385aac.tar.gz dotfiles.core-5c56b0b753899221578626560e7599dd0a385aac.tar.bz2 dotfiles.core-5c56b0b753899221578626560e7599dd0a385aac.zip |
.bashrc: set bash history options
Diffstat (limited to 'home')
-rw-r--r-- | home/.bashrc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/home/.bashrc b/home/.bashrc index 4880780..627ba24 100644 --- a/home/.bashrc +++ b/home/.bashrc | |||
@@ -46,3 +46,17 @@ export GPG_TTY | |||
46 | ######################################################################## | 46 | ######################################################################## |
47 | [[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] \ | 47 | [[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] \ |
48 | && source /usr/local/share/bash-completion/bash_completion.sh | 48 | && source /usr/local/share/bash-completion/bash_completion.sh |
49 | |||
50 | |||
51 | ######################################################################## | ||
52 | ## History | ||
53 | ######################################################################## | ||
54 | # Don't put duplicates or lines starting with spaces in history. | ||
55 | HISTCONTROL=ignoreboth | ||
56 | |||
57 | # Append to history file; don't overwrite | ||
58 | shopt -s histappend | ||
59 | |||
60 | # History size | ||
61 | HISTSIZE=100000 | ||
62 | HISTFILESIZE=100000 | ||