mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-10 12:40:58 +02:00
unposted: ZCALCPROMPT created globally in zcalc
This commit is contained in:
parent
694aee4c3d
commit
8efa4b4088
2 changed files with 7 additions and 1 deletions
|
@ -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>
|
2015-11-27 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||||
|
|
||||||
* 37214: Functions/Prompts/prompt_walters_setup: 'prompt
|
* 37214: Functions/Prompts/prompt_walters_setup: 'prompt
|
||||||
|
|
|
@ -114,7 +114,9 @@ forms=( '%2$g' '%.*g' '%.*f' '%.*E' '')
|
||||||
zmodload -i zsh/mathfunc 2>/dev/null
|
zmodload -i zsh/mathfunc 2>/dev/null
|
||||||
autoload -Uz zmathfuncdef
|
autoload -Uz zmathfuncdef
|
||||||
|
|
||||||
: ${ZCALCPROMPT="%1v> "}
|
if (( ! ${+ZCALCPROMPT} )); then
|
||||||
|
typeset -g ZCALCPROMPT="%1v> "
|
||||||
|
fi
|
||||||
|
|
||||||
# Supply some constants.
|
# Supply some constants.
|
||||||
float PI E
|
float PI E
|
||||||
|
|
Loading…
Reference in a new issue