2020-10-05 02:33:12 -07:00
|
|
|
---
|
|
|
|
id: text
|
|
|
|
title: Text
|
|
|
|
sidebar_label: Text
|
|
|
|
---
|
|
|
|
|
|
|
|
## What
|
|
|
|
|
|
|
|
Display text.
|
|
|
|
|
|
|
|
## Sample Configuration
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"type": "text",
|
|
|
|
"style": "plain",
|
|
|
|
"foreground": "#E06C75",
|
2022-03-27 01:12:47 -07:00
|
|
|
"template": "\u276F"
|
2020-10-05 02:33:12 -07:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2022-02-01 03:10:46 -08:00
|
|
|
## Template ([info][templates])
|
|
|
|
|
|
|
|
### Properties
|
2021-08-09 20:48:44 -07:00
|
|
|
|
2022-09-16 07:32:48 -07:00
|
|
|
| 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
|