mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-14 06:54:05 -08:00
6e9d072b5f
BREAKING CHANGE: you will need to migrate your current sitecore segment template in case you have a custom one. Have a look at the documentation to see what changed.
45 lines
1.2 KiB
Plaintext
45 lines
1.2 KiB
Plaintext
---
|
|
id: sitecore
|
|
title: Sitecore
|
|
sidebar_label: Sitecore
|
|
---
|
|
|
|
## What
|
|
|
|
Display current Sitecore environment. Will not be active when sitecore.json and user.json don't exist.
|
|
|
|
## Sample Configuration
|
|
|
|
```json
|
|
{
|
|
"type": "sitecore",
|
|
"style": "plain",
|
|
"foreground": "#000000",
|
|
"background": "#FFFFFF",
|
|
"template": "Env: {{ .EndpointName }}{{ if .CmHost }} CM: {{ .CmHost }}{{ end }}"
|
|
}
|
|
```
|
|
|
|
## Properties
|
|
|
|
| Name | Type | Description |
|
|
| ----------------- | --------- | -------------------------------------------------------------------------------------------------- |
|
|
| `display_default` | `boolean` | display the segment or not when the Sitecore environment name matches `default` - defaults to true |
|
|
|
|
## Template ([info][templates])
|
|
|
|
:::note default template
|
|
|
|
```template
|
|
{{ .EndpointName }} {{ if .CmHost }}({{ .CmHost }}){{ end }}
|
|
```
|
|
|
|
:::
|
|
|
|
## Properties
|
|
|
|
| Name | Type | Description |
|
|
| -------------- | -------- | ---------------------------------------- |
|
|
| `EndpointName` | `string` | name of the current Sitecore environment |
|
|
| `CmHost` | `string` | host of the current Sitecore environment |
|