diff options
author | Peter Stephenson <pws@zsh.org> | 2015-10-01 15:55:01 +0100 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2015-10-01 15:55:01 +0100 |
commit | 196e6a0ec022fb2fc22820a346b5f206a3cf40ac (patch) | |
tree | c4145dc39b8eda20406a2cc5570bb451bfeb37f8 /Doc/Zsh | |
parent | 8bf72dd65b00ffd223d0705c8fde952ff129eafa (diff) | |
download | zsh-196e6a0ec022fb2fc22820a346b5f206a3cf40ac.tar.gz zsh-196e6a0ec022fb2fc22820a346b5f206a3cf40ac.tar.xz zsh-196e6a0ec022fb2fc22820a346b5f206a3cf40ac.zip |
36735: add ~/.zcalcrc handling to zcalc
Diffstat (limited to 'Doc/Zsh')
-rw-r--r-- | Doc/Zsh/contrib.yo | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo index 330c6f588..635f9b010 100644 --- a/Doc/Zsh/contrib.yo +++ b/Doc/Zsh/contrib.yo @@ -3657,6 +3657,14 @@ integer arithmetic, which is not how an ordinary desk calculator operates. To force floating point operation, pass the option tt(-f); see further notes below. +If the file tt(~/.zcalcrc) exists it will be sourced inside the function +once it is set up and about to process the command line. This +can be used, for example, to set shell options; tt(emulate -L zsh) +and tt(setopt extendedglob) are in effect at this point. Any +failure to source the file if it exists is treated as fatal. +As with other initialisation files, the directory tt($ZDOTDIR) is used +instead of tt($HOME) if it is set. + The mathematical library tt(zsh/mathfunc) will be loaded if it is available; see ifzman(the section `The zsh/mathfunc Module' in zmanref(zshmodules))\ |