1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 10:01:11 +02:00

unposted: ZCALCPROMPT created globally in zcalc

This commit is contained in:
Peter Stephenson 2015-11-27 09:31:46 +00:00
parent 694aee4c3d
commit 8efa4b4088
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2015-11-27 Peter Stephenson <p.stephenson@samsung.com>
* unposted: Functions/Misc/zcalc: ZCALCPROMPT created globally.
2015-11-27 Daniel Shahaf <d.s@daniel.shahaf.name>
* 37214: Functions/Prompts/prompt_walters_setup: 'prompt

View file

@ -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