zsh: do not export HISTFILE, HISTSIZE, SAVEHIST
Every interactive zsh sources /etc/zshrc (see STARTUP/SHUTDOWN FILES in zshautll(1)) Therefor every interactive zsh process will respect the content of these variables. Using `export` will also lead to child processes inheriting this value. This leads to problems, if other interactive shells are spawned such as bash, because they use an incomptabible history format (without timestamps). There seems to be also cases, where the local HISTSIZE in ~/.zshrc is not sourced but /etc/zshrc, which leads to history truncation in other shells.
This commit is contained in:
parent
cb2f84e4d7
commit
9049ab1a3b
1 changed files with 3 additions and 3 deletions
|
@ -102,9 +102,9 @@ in
|
|||
|
||||
interactiveShellInit = ''
|
||||
# history defaults
|
||||
export SAVEHIST=2000
|
||||
export HISTSIZE=2000
|
||||
export HISTFILE=$HOME/.zsh_history
|
||||
SAVEHIST=2000
|
||||
HISTSIZE=2000
|
||||
HISTFILE=$HOME/.zsh_history
|
||||
|
||||
setopt HIST_IGNORE_DUPS SHARE_HISTORY HIST_FCNTL_LOCK
|
||||
|
||||
|
|
Loading…
Reference in a new issue