z-shell / zpmod

⚙️ Zsh module transparently and automatically compiles sourced scripts
https://wiki.zshell.dev/ecosystem/plugins/zsh-modules
Other
20 stars 3 forks source link

[docs]: How to install the traditional way? #28

Open ppetr opened 11 months ago

ppetr commented 11 months ago

Description

I don't want to use zi (because zpmod would be the only thing I'd use it for). And even less so sh <(curl ...). There are multiple reasons against the latter.

So I tried:

But at this point I'm not able to see of/how zpmod is actually running. And where it stores the compiled files. I tried creating directory ~/.zi, but it's not being populated. And zpmod source-study -l shows loading time of some files in the order of 100ms, which I guess means they're not being compiled.


BTW, the links in the bug templates to Contributing Guidelines and Contributor C. Code of Conduts are broken.

Select the area that is associated with this issue.

No response

Self-service

Have you read the Contributing Guidelines?

Are you familiar with the Contributor Covenant Code of Conduct?

Contact Details

No response

ss-o commented 10 months ago

Hi @ppetr :wave:

I am working on your issue and will update you soon.

And where it stores the compiled files.

All files are compiled to the *.zwc for example .zshrc would have .zshrc.zwc next to it.

And zpmod source-study -l shows loading time of some files in the order of 100ms, which I guess means they're not being compiled.

The zpmod source-study -l shows scripts sourced in the current session, i.e.: if you source any script, e.g. source some_script.sh or source ~/.zshenv it will show the loading time of the sourced file. In other words, as mentioned in zpmod -h:

Displays list of files loaded via source or . builtins, with a duration that each loading lasted, in milliseconds. The module tracks all calls to those builtins and measures the time each call took. This can be used for e.g. profile loading of plugins, regardless of the plugin manager used.

Freed-Wu commented 3 months ago

How to install the traditional way

IMO, the tradintional way is source *.plugin.zsh. Perhaps this repo can have a https://github.com/z-shell/zgdbm/blob/main/zgdbm.plugin.zsh to do this work?