Skip to main content

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​

− ▢ × ZVM 0.13.0 _ ohmyposh.dev − ▢ × ZVM 0.13.0 _ ohmyposh.dev

Options​

NameTypeDefaultDescription
zigiconstringZVMthe icon to display before the version

Template (info)​

default template
{{ if .ZigIcon }}{{ .ZigIcon }} {{ end }}{{ .Version }}

Properties​

NameTypeDescription
.Versionstringthe active Zig version used by zvm
.ZigIconstringthe configured zigicon