Created
April 1, 2021 17:13
-
-
Save tatums/b87a447105b0ebd2f0be7036f0eda497 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
## History file configuration | |
[ -z "$HISTFILE" ] && HISTFILE="$HOME/.zsh_history" | |
[ "$HISTSIZE" -lt 50000 ] && HISTSIZE=50000 | |
[ "$SAVEHIST" -lt 10000 ] && SAVEHIST=10000 | |
## History command configuration | |
setopt extended_history # record timestamp of command in HISTFILE | |
setopt hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTSIZE | |
setopt hist_ignore_dups # ignore duplicated commands history list | |
setopt hist_ignore_space # ignore commands that start with space | |
setopt hist_verify # show command with history expansion to user before running it | |
setopt INC_APPEND_HISTORY # append into history file | |
setopt HIST_IGNORE_ALL_DUPS | |
setopt HIST_REDUCE_BLANKS ## Delete empty lines from history file | |
setopt HIST_NO_STORE ## Do not add history and fc commands to the history |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment