1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-26 04:30:27 +01:00

50648: Use $ZCALC_HISTORY where appropriate

This commit is contained in:
Julian Prein 2022-09-19 02:02:18 +00:00 committed by Peter Stephenson
parent ab4d62eb97
commit 6e827d8f9a
3 changed files with 13 additions and 3 deletions

View file

@ -124,8 +124,10 @@ integer _rpn_mode _matched _show_stack _i _n
integer _max_stack _push
local -a _expressions stack
# We use our own history file with an automatic pop on exit.
history -ap "${ZDOTDIR:-$HOME}/.zcalc_history"
history -ap "${ZCALC_HISTFILE:-${ZDOTDIR:-$HOME}/.zcalc_history}"
_forms=( '%2$g' '%.*g' '%.*f' '%.*E' '')