zsh: Fix truncation of history by bash
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.
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
HISTSIZE=1000000
|
HISTSIZE=1000000
|
||||||
SAVEHIST=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
|
if [[ ! -d "${XDG_DATA_HOME:-$HOME/.local/share}"/zsh ]]; then
|
||||||
mkdir -p "${XDG_DATA_HOME:-$HOME/.local/share}"/zsh
|
mkdir -p "${XDG_DATA_HOME:-$HOME/.local/share}"/zsh
|
||||||
|
|||||||
Reference in New Issue
Block a user