Back to Oh My Posh

Sitecore

website/docs/segments/cloud/sitecore.mdx

29.13.01.4 KB
Original Source

import Config from "@site/src/components/Config.js";

What

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

Sample Configuration

<Config data={{ type: "sitecore", style: "plain", foreground: "#000000", background: "#FFFFFF", template: "Env: {{ .EndpointName }}{{ if .CmHost }} CM: {{ .CmHost }}{{ end }}", }} />

Options

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

Template (info)

:::note default template

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

:::

Properties

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