mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-06-05 05:03:16 +02:00
Fix: Do not override values of HISTSIZE and SAVEHIST if configured previously
This causes history file to be truncated to 10000 lines on exit
This commit is contained in:
parent
0639582f73
commit
164ee66bc0
1 changed files with 2 additions and 2 deletions
|
|
@ -28,8 +28,8 @@ esac
|
|||
|
||||
## History file configuration
|
||||
[ -z "$HISTFILE" ] && HISTFILE="$HOME/.zsh_history"
|
||||
HISTSIZE=50000
|
||||
SAVEHIST=10000
|
||||
[ -z "$HISTSIZE" ] && HISTSIZE=50000
|
||||
[ -z "$SAVEHIST" ] && SAVEHIST=10000
|
||||
|
||||
## History command configuration
|
||||
setopt extended_history # record timestamp of command in HISTFILE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue