Создавать каталог для файла истории

This commit is contained in:
Andrei Astafev 2019-05-28 22:04:42 +03:00
parent e09e55d38a
commit 4489d550c1

View File

@ -3,6 +3,8 @@ HISTSIZE=10000000
SAVEHIST=10000000 SAVEHIST=10000000
HISTDUP=erase HISTDUP=erase
[ ! -d "$HOME/.cache/zsh" ] && mkdir -p "$HOME/.cache/zsh"
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.