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 /Functions/Misc/zcalc | |
parent | 8bf72dd65b00ffd223d0705c8fde952ff129eafa (diff) | |
download | zsh-196e6a0ec022fb2fc22820a346b5f206a3cf40ac.tar.gz zsh-196e6a0ec022fb2fc22820a346b5f206a3cf40ac.tar.xz zsh-196e6a0ec022fb2fc22820a346b5f206a3cf40ac.zip |
36735: add ~/.zcalcrc handling to zcalc
Diffstat (limited to 'Functions/Misc/zcalc')
-rw-r--r-- | Functions/Misc/zcalc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Functions/Misc/zcalc b/Functions/Misc/zcalc index 63f67adb0..17700e48b 100644 --- a/Functions/Misc/zcalc +++ b/Functions/Misc/zcalc @@ -120,6 +120,10 @@ autoload -Uz zmathfuncdef float PI E (( PI = 4 * atan(1), E = exp(1) )) +if [[ -f "${ZDOTDIR:-$HOME}/.zcalcrc" ]]; then + . "${ZDOTDIR:-$HOME}/.zcalcrc" || return 1 +fi + # Process command line while [[ -n $1 && $1 = -(|[#-]*|f|e) ]]; do optlist=${1[2,-1]} |