oh-my-posh/website/docs/segments/text.mdx

38 lines
1.3 KiB
Plaintext
Raw Normal View History

2020-10-05 02:33:12 -07:00
---
id: text
title: Text
sidebar_label: Text
---
## What
Display text.
## Sample Configuration
2023-03-31 11:55:36 -07:00
import Config from '@site/src/components/Config.js';
<Config data={{
2020-10-05 02:33:12 -07:00
"type": "text",
"style": "plain",
"foreground": "#E06C75",
2022-03-27 01:12:47 -07:00
"template": "\u276F"
2023-03-31 11:55:36 -07:00
}}/>
2020-10-05 02:33:12 -07:00
2022-02-01 03:10:46 -08:00
## Template ([info][templates])
### Properties
| Name | Type | Description |
| -------------- | --------- | ------------------------------------------------------------------------- |
| `.Root` | `boolean` | is the current user root/admin or not |
| `.Path` | `string` | the current working directory |
| `.Folder` | `string` | the current working folder |
| `.Shell` | `string` | the current shell name |
| `.UserName` | `string` | the current user name |
| `.HostName` | `string` | the host name |
| `.Env.VarName` | `string` | Any environment variable where `VarName` is the environment variable name |
2020-10-05 02:33:12 -07:00
2022-04-20 09:43:59 -07:00
[coloring]: /docs/configuration/colors
[templates]: /docs/configuration/templates