]> arthur.barton.de Git - ax-zsh.git/commitdiff
history: Don't fiddle with HISTFILE, use its defaults
authorAlexander Barton <alex@barton.de>
Sun, 23 Aug 2020 15:01:48 +0000 (17:01 +0200)
committerAlexander Barton <alex@barton.de>
Sun, 23 Aug 2020 15:01:48 +0000 (17:01 +0200)
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

index 49946d476729c992ac17fb54ed0e42b8cd930206..f6a907bac027007cf60cf756aa1a9d3ad92a1da6 100644 (file)
@@ -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