As bash uses some environment variables with the same name as zsh it uses the same history file and potentially truncates it, when there is no bashrc.
10 lines
310 B
Bash
10 lines
310 B
Bash
HISTSIZE=1000000
|
|
SAVEHIST=1000000
|
|
# Keep bash from truncating zsh's history if there is no bashrc
|
|
export HISTFILESIZE=1000000
|
|
|
|
if [[ ! -d "${XDG_DATA_HOME:-$HOME/.local/share}"/zsh ]]; then
|
|
mkdir -p "${XDG_DATA_HOME:-$HOME/.local/share}"/zsh
|
|
fi
|
|
HISTFILE="${XDG_DATA_HOME:-$HOME/.local/share}"/zsh/zsh_history
|