You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/configuration.md
+10-7Lines changed: 10 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -182,10 +182,12 @@ You can use these on any segment, the engine is responsible for adding them corr
182
182
##### Prefix
183
183
184
184
The string content will be put in front of the segment's output text. Useful for symbols, text or other customizations.
185
+
Defaults to `<color>\u2588</>` where `color` is the background color of the segment.
185
186
186
187
##### Postfix
187
188
188
189
The string content will be put after the segment's output text. Useful for symbols, text or other customizations.
190
+
Defaults to `<color>\u2588</>` where `color` is the background color of the segment.
189
191
190
192
##### Ignore Folders
191
193
@@ -200,9 +202,10 @@ segment's configuration will not render it when in that location. The engine wil
200
202
201
203
#### Colors
202
204
203
-
You have the ability to override the foreground and/or background color for text in any property that accepts it. The syntax is custom but
204
-
should be rather straighforward: `<#ffffff,#000000>this is white with black background</> <#FF479C>but this is pink</>`. Anything between the color start
205
-
`<#FF479C>` and end `</>` will be colored accordingly.
205
+
You have the ability to override the foreground and/or background color for text in any property that accepts it.
206
+
The syntax is custom but should be rather straighforward:
207
+
`<#ffffff,#000000>this is white with black background</> <#FF479C>but this is pink</>`.
208
+
Anything between the color start `<#FF479C>` and end `</>` will be colored accordingly.
206
209
207
210
For example, if you want `prefix` to print a colored bracket which isn't the same as the segment's `foreground`, you can
208
211
do so like this:
@@ -224,12 +227,11 @@ To change *only* the background color, just omit the first color from the above
224
227
```
225
228
226
229
Oh my Posh mainly supports three different color types being
227
-
* Typical [hex colors][hexcolors] (for example `#CB4B16`).
228
230
229
-
* The `transparent` keyword which can be used to create either a transparent foreground override
231
+
- Typical [hex colors][hexcolors] (for example `#CB4B16`).
232
+
- The `transparent` keyword which can be used to create either a transparent foreground override
230
233
or transparent background color using the segement's foreground property.
231
-
232
-
* 16 [ANSI color names][ansicolors].
234
+
- 16 [ANSI color names][ansicolors].
233
235
234
236
These include 8 basic ANSI colors and `default`:
235
237
@@ -254,6 +256,7 @@ Oh my Posh mainly supports three different color types being
0 commit comments