summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2015-11-27 09:31:46 +0000
committerPeter Stephenson <pws@zsh.org>2015-11-27 09:31:46 +0000
commit8efa4b4088a9f57903954a12eb086b176109bd91 (patch)
tree184ae383e86a6acddc51e34b53cb6c898e930bb6 /Functions
parent694aee4c3dbc657b8ac05e035cae33fdf49130a2 (diff)
downloadzsh-8efa4b4088a9f57903954a12eb086b176109bd91.tar.gz
zsh-8efa4b4088a9f57903954a12eb086b176109bd91.tar.xz
zsh-8efa4b4088a9f57903954a12eb086b176109bd91.zip
unposted: ZCALCPROMPT created globally in zcalc
Diffstat (limited to 'Functions')
-rw-r--r--Functions/Misc/zcalc4
1 files changed, 3 insertions, 1 deletions
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