mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Don't blindly overwrite history variables
OMZ should respect HISTSIZE and SAVEHIST if they are set before OMZ is run.
This commit is contained in:
parent
62b0abdb6e
commit
327ee2b877
1 changed files with 3 additions and 6 deletions
|
|
@ -1,10 +1,7 @@
|
|||
## Command history configuration
|
||||
if [ -z "$HISTFILE" ]; then
|
||||
HISTFILE=$HOME/.zsh_history
|
||||
fi
|
||||
|
||||
HISTSIZE=10000
|
||||
SAVEHIST=10000
|
||||
env_default HISTFILE "$HOME/.zsh_history"
|
||||
env_default HISTSIZE 10000
|
||||
env_default SAVEHIST 10000
|
||||
|
||||
# Show history
|
||||
case $HIST_STAMPS in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue