zdharma-continuum / zinit

🌻 Flexible and fast ZSH plugin manager
MIT License
2.95k stars 126 forks source link

[feat]: generate .gitignore in ._zinit #395

Closed Freed-Wu closed 1 year ago

Freed-Wu commented 1 year ago

If the feature request is for a plugin or theme, specify it here.

No response

If the feature solves a problem you have, specify it here.

zinit will generate a directory named ._zinit in the plugin directory. such as:

❯ ls -a ._zinit
 depth   id-as   if   lucid   teleid   wait

How about

❯ ls -a ._zinit
 depth  .gitignore  id-as   if   lucid   teleid   wait
❯ cat ._zinit/.gitignore
*

to avoid ._zinit to be added to git?

Describe the proposed feature.

Generate .gitignore.

Describe alternatives you've considered

No response

Additional context

No response

Related Issues

No response

Freed-Wu commented 1 year ago

It looks like just echo '*' > ._zinit/.gitignore after these lines is OK:

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 3.11.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: