Atualizar home/zshrc.sh
This commit is contained in:
@@ -38,9 +38,13 @@ zmodload -a zsh/zprof zprof
|
|||||||
|
|
||||||
PATH="$HOME/.local/bin:/usr/local/bin:/usr/local/sbin/:$PATH"
|
PATH="$HOME/.local/bin:/usr/local/bin:/usr/local/sbin/:$PATH"
|
||||||
TZ="America/Sao_Paulo"
|
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"
|
HISTFILE="$HOME/.zsh_history"
|
||||||
HISTSIZE=10000000
|
HISTSIZE=1000000
|
||||||
SAVEHIST=10000000
|
SAVEHIST=1000000
|
||||||
setopt BANG_HIST # Treat the '!' character specially during expansion.
|
setopt BANG_HIST # Treat the '!' character specially during expansion.
|
||||||
setopt EXTENDED_HISTORY # Write the history file in the ":start:elapsed;command" format.
|
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.
|
setopt INC_APPEND_HISTORY # Write to the history file immediately, not when the shell exits.
|
||||||
Reference in New Issue
Block a user