zi create
Summary
Section titled “Summary”Create a new plugin skeleton in the Zinit plugins directory, optionally also creating a matching GitHub repository.
Syntax / Usage
Section titled “Syntax / Usage”zi create {plg-spec}{plg-spec}— use_local/plugin-nameto create a local-only plugin (no GitHub repo). Useusername/plugin-namewith a real GitHub username to also create and link a GitHub repository.
Details
Section titled “Details”Scaffolds a new plugin directory under $ZINIT[PLUGINS_DIR]. When the user portion of the spec is _local (the default), the directory is created locally with no remote. When a real GitHub username is given, Zinit creates the repository on GitHub and configures the remote origin. The cd command can then be used with just the plugin name (omitting _local) to enter the directory.
Examples
Section titled “Examples”# Create a local-only pluginzi create _local/my-helpers
# Enter the plugin directory (omit _local/)zi cd my-helpersSee Also
Section titled “See Also”- cmd-load
- cmd-edit
- cmd-cd