From 7ec1869f094410a2fa14da065fda0e0421446ada Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Sun, 23 Aug 2020 17:01:48 +0200 Subject: [PATCH] history: Don't fiddle with HISTFILE, use its defaults Don't relocate it to $ZSH_CACHE_DIR, as it clearly is not "cached data": it can't be recreated when lost! --- default_plugins/history/history.zshrc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/default_plugins/history/history.zshrc b/default_plugins/history/history.zshrc index 49946d4..f6a907b 100644 --- a/default_plugins/history/history.zshrc +++ b/default_plugins/history/history.zshrc @@ -1,14 +1,6 @@ # AX-ZSH: Alex' Modular ZSH Configuration # history.zshrc: Setup ZSH history -if [[ -z "$HISTFILE" ]]; then - # Save history file in cache directory, if not already present - # in $ZDOTDIR/$HOME: - [ -r "${ZDOTDIR:-$HOME}/.zsh_history" ] \ - && HISTFILE="${ZDOTDIR:-$HOME}/.zsh_history" \ - || HISTFILE="$ZSH_CACHE_DIR/history" -fi - HISTSIZE=10000 SAVEHIST=10000 -- 2.39.2