1
0
Fork 0
dotfiles/bash/history.sh

10 lines
507 B
Bash
Raw Normal View History

2017-03-10 10:42:12 +00:00
shopt -s histappend # Append history instead of rewriting it
shopt -s cmdhist # Use one command per line
2017-10-05 11:17:39 +00:00
HISTCONTROL=ignoreboth # Dont store specific lines (ignoredups + ignorespace)
2017-03-10 10:42:12 +00:00
HISTTIMEFORMAT='%F %T ' # Record timestamps
HISTFILESIZE=1000000 # Allow a larger history file
HISTSIZE=1000000 # Allow a longer history
PROMPT_COMMAND='history -a' # Store history immediately
# Don't add such calls to history
HISTIGNORE='ls:ll:bg:fg:history:ga:gd:gc:gl:gp'