Browse Source

history: Permit use of previously set HISTFILE

Honor the use of the HISTFILE environment variable, if it's already set.
master
Shane O'Grady 5 years ago committed by Kaleb Elwert
parent
commit
cb7761dd14
  1. 2
      modules/history/init.zsh

2
modules/history/init.zsh

@ -26,7 +26,7 @@ setopt HIST_BEEP # Beep when accessing non-existent history. @@ -26,7 +26,7 @@ setopt HIST_BEEP # Beep when accessing non-existent history.
# Variables
#
HISTFILE="${ZDOTDIR:-$HOME}/.zhistory" # The path to the history file.
HISTFILE="${HISTFILE:-${ZDOTDIR:-$HOME}/.zhistory}" # The path to the history file.
HISTSIZE=10000 # The maximum number of events to save in the internal history.
SAVEHIST=10000 # The maximum number of events to save in the history file.

Loading…
Cancel
Save