diff --git a/home/zshrc b/home/zshrc.sh similarity index 96% rename from home/zshrc rename to home/zshrc.sh index 25ca380..e8c6112 100644 --- a/home/zshrc +++ b/home/zshrc.sh @@ -38,9 +38,13 @@ zmodload -a zsh/zprof zprof PATH="$HOME/.local/bin:/usr/local/bin:/usr/local/sbin/:$PATH" TZ="America/Sao_Paulo" + +# See: +# [1] https://unix.stackexchange.com/questions/273861/unlimited-history-in-zsh +# [2] https://www.reddit.com/r/zsh/comments/x7uj9e/measuring_the_best_value_of_histsize/ HISTFILE="$HOME/.zsh_history" -HISTSIZE=10000000 -SAVEHIST=10000000 +HISTSIZE=1000000 +SAVEHIST=1000000 setopt BANG_HIST # Treat the '!' character specially during expansion. setopt EXTENDED_HISTORY # Write the history file in the ":start:elapsed;command" format. setopt INC_APPEND_HISTORY # Write to the history file immediately, not when the shell exits.