mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-13 14:34:06 -08:00
38 lines
1.3 KiB
Plaintext
38 lines
1.3 KiB
Plaintext
---
|
|
id: text
|
|
title: Text
|
|
sidebar_label: Text
|
|
---
|
|
|
|
## What
|
|
|
|
Display text.
|
|
|
|
## Sample Configuration
|
|
|
|
import Config from '@site/src/components/Config.js';
|
|
|
|
<Config data={{
|
|
"type": "text",
|
|
"style": "plain",
|
|
"foreground": "#E06C75",
|
|
"template": "\u276F"
|
|
}}/>
|
|
|
|
## 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 |
|
|
|
|
[coloring]: /docs/configuration/colors
|
|
[templates]: /docs/configuration/templates
|