1
0
Fork 0
dotfiles/bash/history.sh

10 lines
507 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

shopt -s histappend # Append history instead of rewriting it
shopt -s cmdhist # Use one command per line
HISTCONTROL=ignoreboth # Dont store specific lines (ignoredups + ignorespace)
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'