From: Peter Stephenson <p.stephenson@samsung.com>
To: <zsh-users@zsh.org>
Subject: Re: persistance in zcalc funct defs
Date: Thu, 3 May 2018 12:18:41 +0100 [thread overview]
Message-ID: <20180503121841.0f21e362@camnpupstephen.cam.scsc.local> (raw)
In-Reply-To: <20180503033801.5111@sparky>
On Thu, 03 May 2018 03:38:01 -0700
"jdh" <dhenman@gmail.com> wrote:
> In zcalc I did the below (The constants are for 360/(2*pi) and it's
> inverse)
>
> ..> function dtor $1 * 0.0174533
> ..> function rtod $1 * 57.2958
>
>
>
> When I shut down and reboot on the morrow, I dought that these will
> persist.
>
> Do I need to, or can I put these functions in a zcalc read/init
> file ? This syntax will probably not work in the zsh startup files.
Just put the following in your .zshrc:
autoload -Uz zmathfuncdef
zmathfuncdef dtor '$1 * 0.0174533'
zmathfuncdef rtod '$1 * 57.2958'
See the zshcontrib manaul.
pws
next prev parent reply other threads:[~2018-05-03 11:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20180503103919epcas1p328bce3d32c6c002be49e49e10ff08ced@epcas1p3.samsung.com>
2018-05-03 10:38 ` jdh
2018-05-03 11:18 ` Peter Stephenson [this message]
2018-05-03 15:13 ` Ray Andrews
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180503121841.0f21e362@camnpupstephen.cam.scsc.local \
--to=p.stephenson@samsung.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).