diff options
author | Julian Prein <druckdev@protonmail.com> | 2022-09-19 02:02:18 +0000 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2022-09-25 18:05:49 +0100 |
commit | 6e827d8f9a50653aa1905d8aff8cc91e6e2423c4 (patch) | |
tree | e37aaa84a16926dd8c5e68aa805cc5d623d1a432 /Functions | |
parent | ab4d62eb975a4c4c51dd35822665050e2ddc6918 (diff) | |
download | zsh-6e827d8f9a50653aa1905d8aff8cc91e6e2423c4.tar.gz zsh-6e827d8f9a50653aa1905d8aff8cc91e6e2423c4.tar.xz zsh-6e827d8f9a50653aa1905d8aff8cc91e6e2423c4.zip |
50648: Use $ZCALC_HISTORY where appropriate
Diffstat (limited to 'Functions')
-rw-r--r-- | Functions/Misc/zcalc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Functions/Misc/zcalc b/Functions/Misc/zcalc index 480373345..6cd2822c9 100644 --- a/Functions/Misc/zcalc +++ b/Functions/Misc/zcalc @@ -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' '') |