Skip to main content

Sitecore

What

Display current Sitecore environment. Will not be active when sitecore.json and user.json don't exist.

Sample Configuration

× Env: production CM: contoso-cm.sitecorecloud.io _ ohmyposh.dev × Env: production CM: contoso-cm.sitecorecloud.io _ ohmyposh.dev

Options

NameTypeDefaultDescription
display_defaultbooleantruedisplay the segment or not when the Sitecore environment name matches default

Template (info)

default template
{{ .EndpointName }} {{ if .CmHost }}({{ .CmHost }}){{ end }}

Properties

NameTypeDescription
EndpointNamestringname of the current Sitecore environment
CmHoststringhost of the current Sitecore environment