ZVM
What
Display the active Zig version reported by ZVM (Zig Version Manager).
The segment is only enabled when the zvm command is available and a version is currently in use.
Sample Configuration
- json
- yaml
- toml
Options
| Name | Type | Default | Description |
|---|---|---|---|
zigicon | string | ZVM | the icon to display before the version |
Template (info)
default template
- json
- yaml
- toml
{
"template": " {{ if .ZigIcon }}{{ .ZigIcon }} {{ end }}{{ .Version }} "
}
template: " {{ if .ZigIcon }}{{ .ZigIcon }} {{ end }}{{ .Version }} "
template = " {{ if .ZigIcon }}{{ .ZigIcon }} {{ end }}{{ .Version }} "
Properties
| Name | Type | Description |
|---|---|---|
.Version | string | the active Zig version used by zvm |
.ZigIcon | string | the configured zigicon |