Atualizar home/zshrc.sh

This commit is contained in:
2026-09-17 09:40:38 -03:00
parent 96489efce7
commit 2b25662190
+6 -2
View File
@@ -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.