Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
persistance in zcalc funct defs
- X-seq: zsh-users 23381
- From: "jdh" <dhenman@xxxxxxxxx>
- To: <zsh-users@xxxxxxx>
- Subject: persistance in zcalc funct defs
- Date: Thu, 03 May 2018 03:38:01 -0700
- Cc:
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:cc:subject:date:from:message-id; bh=C69nBhTRmBYSOvtboTmbSOxyBg5Bd7mjejwGLPtkkIE=; b=rO+31pDh6/9QNNXxwxUhDANxBT5+qzcuksEvnMdzCj3acnF8kzq76CkW4uhfXqN28I i95G6foOJPSOrnV/aqybXrtYHFKq7AqwmdCRO72R873tM4XHhzs/tJXohVkxPqnYeMlZ 9Zn3N0Xj37nJQn79cKuMUC/greh0bnmpElMjVeeY4EVpsTl9FFd0zpMKrrfeWK/bk/AY 0FX9q3URj9SEg7i+fSeUs//rkKguYmZymxoZ+PSR3+xzhNV4LyCQH5HuoqIy3BTxxPcu edelLNBNxHqyxz8qKTXvCSbpfp3M1VEvBqofZGBT4g12O/thO9EwGku9pauWLCwlRx3n Pm1w==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Example I am doing some trigonometry calcuations and am more familiar with using degrees for angles, rather than radians.
Today I learned how do define zcalc functions to ease this
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.
What is the recommended way to get functions for zcalc loaded automatically.
Regards
Messages sorted by:
Reverse Date,
Date,
Thread,
Author