From 8efa4b4088a9f57903954a12eb086b176109bd91 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 27 Nov 2015 09:31:46 +0000 Subject: unposted: ZCALCPROMPT created globally in zcalc --- Functions/Misc/zcalc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Functions') diff --git a/Functions/Misc/zcalc b/Functions/Misc/zcalc index 17700e48b..857007a94 100644 --- a/Functions/Misc/zcalc +++ b/Functions/Misc/zcalc @@ -114,7 +114,9 @@ forms=( '%2$g' '%.*g' '%.*f' '%.*E' '') zmodload -i zsh/mathfunc 2>/dev/null autoload -Uz zmathfuncdef -: ${ZCALCPROMPT="%1v> "} +if (( ! ${+ZCALCPROMPT} )); then + typeset -g ZCALCPROMPT="%1v> " +fi # Supply some constants. float PI E -- cgit 1.4.1