Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

persistance in zcalc funct defs




 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