From: Alexander Barton Date: Sun, 23 Aug 2020 15:01:48 +0000 (+0200) Subject: history: Don't fiddle with HISTFILE, use its defaults X-Git-Url: https://arthur.barton.de/gitweb/?p=ax-zsh.git;a=commitdiff_plain;h=7ec1869f094410a2fa14da065fda0e0421446ada;hp=77e572112e0f0641b75b8bf55bc9e42f18964f4b 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! --- 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