mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
fix: use full block for spaces
This commit is contained in:
parent
c73d1971f3
commit
7d3629c7d4
|
@ -182,10 +182,12 @@ You can use these on any segment, the engine is responsible for adding them corr
|
||||||
##### Prefix
|
##### Prefix
|
||||||
|
|
||||||
The string content will be put in front of the segment's output text. Useful for symbols, text or other customizations.
|
The string content will be put in front of the segment's output text. Useful for symbols, text or other customizations.
|
||||||
|
Defaults to `<color>\u2588</>` where `color` is the background color of the segment.
|
||||||
|
|
||||||
##### Postfix
|
##### Postfix
|
||||||
|
|
||||||
The string content will be put after the segment's output text. Useful for symbols, text or other customizations.
|
The string content will be put after the segment's output text. Useful for symbols, text or other customizations.
|
||||||
|
Defaults to `<color>\u2588</>` where `color` is the background color of the segment.
|
||||||
|
|
||||||
##### Ignore Folders
|
##### Ignore Folders
|
||||||
|
|
||||||
|
@ -200,9 +202,10 @@ segment's configuration will not render it when in that location. The engine wil
|
||||||
|
|
||||||
#### Colors
|
#### Colors
|
||||||
|
|
||||||
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
|
You have the ability to override the foreground and/or background color for text in any property that accepts it.
|
||||||
should be rather straighforward: `<#ffffff,#000000>this is white with black background</> <#FF479C>but this is pink</>`. Anything between the color start
|
The syntax is custom but should be rather straighforward:
|
||||||
`<#FF479C>` and end `</>` will be colored accordingly.
|
`<#ffffff,#000000>this is white with black background</> <#FF479C>but this is pink</>`.
|
||||||
|
Anything between the color start `<#FF479C>` and end `</>` will be colored accordingly.
|
||||||
|
|
||||||
For example, if you want `prefix` to print a colored bracket which isn't the same as the segment's `foreground`, you can
|
For example, if you want `prefix` to print a colored bracket which isn't the same as the segment's `foreground`, you can
|
||||||
do so like this:
|
do so like this:
|
||||||
|
@ -224,12 +227,11 @@ To change *only* the background color, just omit the first color from the above
|
||||||
```
|
```
|
||||||
|
|
||||||
Oh my Posh mainly supports three different color types being
|
Oh my Posh mainly supports three different color types being
|
||||||
* Typical [hex colors][hexcolors] (for example `#CB4B16`).
|
|
||||||
|
|
||||||
* The `transparent` keyword which can be used to create either a transparent foreground override
|
- Typical [hex colors][hexcolors] (for example `#CB4B16`).
|
||||||
|
- The `transparent` keyword which can be used to create either a transparent foreground override
|
||||||
or transparent background color using the segement's foreground property.
|
or transparent background color using the segement's foreground property.
|
||||||
|
- 16 [ANSI color names][ansicolors].
|
||||||
* 16 [ANSI color names][ansicolors].
|
|
||||||
|
|
||||||
These include 8 basic ANSI colors and `default`:
|
These include 8 basic ANSI colors and `default`:
|
||||||
|
|
||||||
|
@ -254,6 +256,7 @@ Oh my Posh mainly supports three different color types being
|
||||||
"type": "time",
|
"type": "time",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#007ACC",
|
"foreground": "#007ACC",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"time_format": "15:04:05"
|
"time_format": "15:04:05"
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,8 +64,9 @@ func (e *engine) renderDiamondSegment(text string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e *engine) renderText(text string) {
|
func (e *engine) renderText(text string) {
|
||||||
prefix := e.activeSegment.getValue(Prefix, " ")
|
defaultValue := fmt.Sprintf("<%s>\u2588</>", e.activeSegment.Background)
|
||||||
postfix := e.activeSegment.getValue(Postfix, " ")
|
prefix := e.activeSegment.getValue(Prefix, defaultValue)
|
||||||
|
postfix := e.activeSegment.getValue(Postfix, defaultValue)
|
||||||
e.renderer.write(e.activeSegment.Background, e.activeSegment.Foreground, fmt.Sprintf("%s%s%s", prefix, text, postfix))
|
e.renderer.write(e.activeSegment.Background, e.activeSegment.Foreground, fmt.Sprintf("%s%s%s", prefix, text, postfix))
|
||||||
if *e.env.getArgs().Debug {
|
if *e.env.getArgs().Debug {
|
||||||
e.renderer.write(e.activeSegment.Background, e.activeSegment.Foreground, fmt.Sprintf("(%s:%s)", e.activeSegment.Type, e.activeSegment.timing))
|
e.renderer.write(e.activeSegment.Background, e.activeSegment.Foreground, fmt.Sprintf("(%s:%s)", e.activeSegment.Type, e.activeSegment.timing))
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
"type": "time",
|
"type": "time",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#007ACC",
|
"foreground": "#007ACC",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"time_format": "15:04:05"
|
"time_format": "15:04:05"
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
"type": "path",
|
"type": "path",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#ffffff",
|
"foreground": "#ffffff",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "",
|
"prefix": "",
|
||||||
"style": "short"
|
"style": "short"
|
||||||
|
@ -16,17 +17,23 @@
|
||||||
{
|
{
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#C2C206"
|
"foreground": "#C2C206",
|
||||||
|
"background": "transparent",
|
||||||
|
"properties": {
|
||||||
|
"prefix": ""
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "root",
|
"type": "root",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#B5B50D"
|
"foreground": "#B5B50D",
|
||||||
|
"background": "transparent"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "exit",
|
"type": "exit",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#C94A16",
|
"foreground": "#C94A16",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "x"
|
"prefix": "x"
|
||||||
}
|
}
|
||||||
|
@ -44,8 +51,10 @@
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#007ACC",
|
"foreground": "#007ACC",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "",
|
"prefix": "",
|
||||||
|
"postfix": "",
|
||||||
"text": "\uE602"
|
"text": "\uE602"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
"type": "session",
|
"type": "session",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#ffffff",
|
"foreground": "#ffffff",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"user_info_separator": "",
|
"user_info_separator": "",
|
||||||
"display_host": false,
|
"display_host": false,
|
||||||
|
@ -19,6 +20,7 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#ffffff",
|
"foreground": "#ffffff",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "<#CB4B16>[</>",
|
"prefix": "<#CB4B16>[</>",
|
||||||
"postfix": "<#CB4B16>]</>"
|
"postfix": "<#CB4B16>]</>"
|
||||||
|
@ -28,6 +30,7 @@
|
||||||
"type": "root",
|
"type": "root",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#ffffff",
|
"foreground": "#ffffff",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "<#CB4B16>[</>",
|
"prefix": "<#CB4B16>[</>",
|
||||||
"postfix": "<#CB4B16>]</>"
|
"postfix": "<#CB4B16>]</>"
|
||||||
|
@ -37,6 +40,7 @@
|
||||||
"type": "exit",
|
"type": "exit",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#ffffff",
|
"foreground": "#ffffff",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "<#CB4B16>[x</>",
|
"prefix": "<#CB4B16>[x</>",
|
||||||
"postfix": "<#CB4B16>]</>"
|
"postfix": "<#CB4B16>]</>"
|
||||||
|
@ -55,6 +59,7 @@
|
||||||
"type": "path",
|
"type": "path",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#ffffff",
|
"foreground": "#ffffff",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"style": "short",
|
"style": "short",
|
||||||
"prefix": "<#CB4B16>┖[</>",
|
"prefix": "<#CB4B16>┖[</>",
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
"type": "time",
|
"type": "time",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#E5C07B",
|
"foreground": "#E5C07B",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"time_format": "15:04:05",
|
"time_format": "15:04:05",
|
||||||
"prefix": "[",
|
"prefix": "[",
|
||||||
|
@ -17,12 +18,14 @@
|
||||||
{
|
{
|
||||||
"type": "root",
|
"type": "root",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#B5B50D"
|
"foreground": "#B5B50D",
|
||||||
|
"background": "transparent"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "path",
|
"type": "path",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#61AFEF",
|
"foreground": "#61AFEF",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"style": "agnoster",
|
"style": "agnoster",
|
||||||
"postfix": " on"
|
"postfix": " on"
|
||||||
|
@ -32,6 +35,7 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#F3C267",
|
"foreground": "#F3C267",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"display_status": true,
|
"display_status": true,
|
||||||
"branch_identical_icon": "\uF14A",
|
"branch_identical_icon": "\uF14A",
|
||||||
|
@ -42,6 +46,7 @@
|
||||||
"type": "exit",
|
"type": "exit",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#C94A16",
|
"foreground": "#C94A16",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "x"
|
"prefix": "x"
|
||||||
}
|
}
|
||||||
|
@ -50,13 +55,14 @@
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#E06C75",
|
"foreground": "#E06C75",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "",
|
"prefix": "",
|
||||||
"text": " \u276F"
|
"text": "\u276F"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"final_space": true
|
"final_space": false
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
"type": "exit",
|
"type": "exit",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#ffffff",
|
"foreground": "#ffffff",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"postfix": ""
|
"postfix": ""
|
||||||
}
|
}
|
||||||
|
@ -15,12 +16,14 @@
|
||||||
{
|
{
|
||||||
"type": "root",
|
"type": "root",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#100e23"
|
"foreground": "#100e23",
|
||||||
|
"background": "transparent"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "session",
|
"type": "session",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#ffffff"
|
"foreground": "#ffffff",
|
||||||
|
"background": "transparent"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "path",
|
"type": "path",
|
||||||
|
@ -49,6 +52,7 @@
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#007ACC",
|
"foreground": "#007ACC",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "",
|
"prefix": "",
|
||||||
"text": "\uE0B0"
|
"text": "\uE0B0"
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
"type": "session",
|
"type": "session",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#FFFFFF",
|
"foreground": "#FFFFFF",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"user_info_separator": " <#ffffff>in</> ",
|
"user_info_separator": " <#ffffff>in</> ",
|
||||||
"prefix": "<#0377C8># </>",
|
"prefix": "<#0377C8># </>",
|
||||||
|
@ -19,6 +20,7 @@
|
||||||
"type": "path",
|
"type": "path",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#0973C0",
|
"foreground": "#0973C0",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"folder_icon": "\uF115",
|
"folder_icon": "\uF115",
|
||||||
"folder_separator_icon": "\uE0B1",
|
"folder_separator_icon": "\uE0B1",
|
||||||
|
@ -29,6 +31,7 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#B8B80A",
|
"foreground": "#B8B80A",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "<#ffffff>on git:</>"
|
"prefix": "<#ffffff>on git:</>"
|
||||||
}
|
}
|
||||||
|
@ -43,6 +46,7 @@
|
||||||
"type": "time",
|
"type": "time",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#ffffff",
|
"foreground": "#ffffff",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "[",
|
"prefix": "[",
|
||||||
"postfix": "]"
|
"postfix": "]"
|
||||||
|
@ -61,6 +65,7 @@
|
||||||
"type": "root",
|
"type": "root",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#CECE04",
|
"foreground": "#CECE04",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": ""
|
"prefix": ""
|
||||||
}
|
}
|
||||||
|
@ -69,6 +74,7 @@
|
||||||
"type": "python",
|
"type": "python",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#100e23",
|
"foreground": "#100e23",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": " \uE235 "
|
"prefix": " \uE235 "
|
||||||
}
|
}
|
||||||
|
@ -76,12 +82,14 @@
|
||||||
{
|
{
|
||||||
"type": "exit",
|
"type": "exit",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#CB4B16"
|
"foreground": "#CB4B16",
|
||||||
|
"background": "transparent"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#CC4B16",
|
"foreground": "#CC4B16",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "",
|
"prefix": "",
|
||||||
"text": "\u279C"
|
"text": "\u279C"
|
||||||
|
@ -90,5 +98,5 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"final_space": true
|
"final_space": false
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#F5F5F5",
|
"foreground": "#F5F5F5",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "",
|
"prefix": "",
|
||||||
"text": "\uFB26"
|
"text": "\uFB26"
|
||||||
|
@ -17,7 +18,9 @@
|
||||||
"type": "path",
|
"type": "path",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#B80101",
|
"foreground": "#B80101",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"prefix": "",
|
||||||
"style": "agnoster"
|
"style": "agnoster"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -25,6 +28,7 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#B80101",
|
"foreground": "#B80101",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": " <#F5F5F5>git:</>"
|
"prefix": " <#F5F5F5>git:</>"
|
||||||
}
|
}
|
||||||
|
@ -32,5 +36,5 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"final_space": true
|
"final_space": false
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#ffffff",
|
"foreground": "#ffffff",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "",
|
"prefix": "",
|
||||||
"text": "<#C591E8>\u276F</><#69FF94>\u276F</>"
|
"text": "<#C591E8>\u276F</><#69FF94>\u276F</>"
|
||||||
|
@ -17,7 +18,9 @@
|
||||||
"type": "path",
|
"type": "path",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#56B6C2",
|
"foreground": "#56B6C2",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"prefix": "",
|
||||||
"style": "folder"
|
"style": "folder"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -25,6 +28,7 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#D0666F",
|
"foreground": "#D0666F",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"branch_icon": "",
|
"branch_icon": "",
|
||||||
"display_status": false,
|
"display_status": false,
|
||||||
|
@ -36,6 +40,7 @@
|
||||||
"type": "exit",
|
"type": "exit",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#DCB977",
|
"foreground": "#DCB977",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "\uD00D",
|
"prefix": "\uD00D",
|
||||||
"display_exit_code": false
|
"display_exit_code": false
|
||||||
|
@ -45,6 +50,7 @@
|
||||||
"type": "time",
|
"type": "time",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#66F68F",
|
"foreground": "#66F68F",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"time_format": "15:04"
|
"time_format": "15:04"
|
||||||
}
|
}
|
||||||
|
@ -52,5 +58,5 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"final_space": true
|
"final_space": false
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,6 +70,7 @@
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#007ACC",
|
"foreground": "#007ACC",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "",
|
"prefix": "",
|
||||||
"text": "\u276F"
|
"text": "\u276F"
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#ffffff",
|
"foreground": "#ffffff",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "",
|
"prefix": "",
|
||||||
"text": "<#C591E8>\u276F</><#69FF94>\u276F</>"
|
"text": "<#C591E8>\u276F</><#69FF94>\u276F</>"
|
||||||
|
@ -17,7 +18,9 @@
|
||||||
"type": "path",
|
"type": "path",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#56B6C2",
|
"foreground": "#56B6C2",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"prefix": "",
|
||||||
"style": "folder"
|
"style": "folder"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -25,6 +28,7 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#D0666F",
|
"foreground": "#D0666F",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"branch_icon": "",
|
"branch_icon": "",
|
||||||
"display_status": false,
|
"display_status": false,
|
||||||
|
@ -36,6 +40,7 @@
|
||||||
"type": "exit",
|
"type": "exit",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#DCB977",
|
"foreground": "#DCB977",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "\uD00D",
|
"prefix": "\uD00D",
|
||||||
"display_exit_code": false
|
"display_exit_code": false
|
||||||
|
@ -51,6 +56,7 @@
|
||||||
"type": "command",
|
"type": "command",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#ffffff",
|
"foreground": "#ffffff",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"shell": "bash",
|
"shell": "bash",
|
||||||
"command": "git log --pretty=format:%cr -1 || date +%H:%m:%S"
|
"command": "git log --pretty=format:%cr -1 || date +%H:%m:%S"
|
||||||
|
@ -69,13 +75,14 @@
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#ffffff",
|
"foreground": "#ffffff",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "",
|
"prefix": "",
|
||||||
"text": "\uF441"
|
"text": "\uF441 "
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"final_space": true
|
"final_space": false
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,6 +88,7 @@
|
||||||
"type": "exit",
|
"type": "exit",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#D4E157",
|
"foreground": "#D4E157",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "\u276F",
|
"prefix": "\u276F",
|
||||||
"always_enabled": true,
|
"always_enabled": true,
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
"type": "time",
|
"type": "time",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#00C5C7",
|
"foreground": "#00C5C7",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"time_format": "15:04:05"
|
"time_format": "15:04:05"
|
||||||
}
|
}
|
||||||
|
@ -26,6 +27,7 @@
|
||||||
"type": "path",
|
"type": "path",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#77E4F7",
|
"foreground": "#77E4F7",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "",
|
"prefix": "",
|
||||||
"style": "short"
|
"style": "short"
|
||||||
|
@ -35,6 +37,7 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#FFE700",
|
"foreground": "#FFE700",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": ""
|
"prefix": ""
|
||||||
}
|
}
|
||||||
|
@ -43,6 +46,7 @@
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#43D426",
|
"foreground": "#43D426",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "",
|
"prefix": "",
|
||||||
"text": "\u276F"
|
"text": "\u276F"
|
||||||
|
|
|
@ -7,12 +7,14 @@
|
||||||
{
|
{
|
||||||
"type": "root",
|
"type": "root",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#FFEE58"
|
"foreground": "#FFEE58",
|
||||||
|
"background": "transparent"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "session",
|
"type": "session",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#ffffff"
|
"foreground": "#ffffff",
|
||||||
|
"background": "transparent"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "path",
|
"type": "path",
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#98C379",
|
"foreground": "#98C379",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "",
|
"prefix": "",
|
||||||
"text": "\u279C",
|
"text": "\u279C",
|
||||||
|
@ -18,6 +19,7 @@
|
||||||
"type": "path",
|
"type": "path",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#56B6C2",
|
"foreground": "#56B6C2",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"style": "folder"
|
"style": "folder"
|
||||||
}
|
}
|
||||||
|
@ -26,6 +28,7 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#D0666F",
|
"foreground": "#D0666F",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"branch_icon": "",
|
"branch_icon": "",
|
||||||
"display_status": false,
|
"display_status": false,
|
||||||
|
@ -37,6 +40,7 @@
|
||||||
"type": "exit",
|
"type": "exit",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#DCB977",
|
"foreground": "#DCB977",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "\uD00D",
|
"prefix": "\uD00D",
|
||||||
"display_exit_code": false
|
"display_exit_code": false
|
||||||
|
|
|
@ -7,7 +7,31 @@
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"color": {
|
"color": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"pattern": "^(#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})|black|red|green|yellow|blue|magenta|cyan|white|default|darkGray|lightRed|lightGreen|lightYellow|lightBlue|lightMagenta|lightCyan|lightWhite)$",
|
"oneOf": [
|
||||||
|
{ "pattern": "^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$" },
|
||||||
|
{
|
||||||
|
"enum": [
|
||||||
|
"black",
|
||||||
|
"red",
|
||||||
|
"green",
|
||||||
|
"yellow",
|
||||||
|
"blue",
|
||||||
|
"magenta",
|
||||||
|
"cyan",
|
||||||
|
"white",
|
||||||
|
"default",
|
||||||
|
"darkGray",
|
||||||
|
"lightRed",
|
||||||
|
"lightGreen",
|
||||||
|
"lightYellow",
|
||||||
|
"lightBlue",
|
||||||
|
"lightMagenta",
|
||||||
|
"lightCyan",
|
||||||
|
"lightWhite",
|
||||||
|
"transparent"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"title": "Color string",
|
"title": "Color string",
|
||||||
"description": "https://ohmyposh.dev/docs/configure#colors"
|
"description": "https://ohmyposh.dev/docs/configure#colors"
|
||||||
},
|
},
|
||||||
|
@ -76,7 +100,7 @@
|
||||||
"title": "A segment",
|
"title": "A segment",
|
||||||
"description": "https://ohmyposh.dev/docs/configure#segment",
|
"description": "https://ohmyposh.dev/docs/configure#segment",
|
||||||
"default": {},
|
"default": {},
|
||||||
"required": ["type", "style", "foreground"],
|
"required": ["type", "style", "foreground", "background"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"type": {
|
"type": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|
|
@ -7,23 +7,37 @@
|
||||||
{
|
{
|
||||||
"type": "exit",
|
"type": "exit",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#CB4B16"
|
"foreground": "#CB4B16",
|
||||||
|
"background": "transparent",
|
||||||
|
"properties": {
|
||||||
|
"prefix": ""
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "root",
|
"type": "root",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#CECE04"
|
"foreground": "#CECE04",
|
||||||
|
"background": "transparent",
|
||||||
|
"properties": {
|
||||||
|
"prefix": ""
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "session",
|
"type": "session",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#FFFFFF"
|
"foreground": "#FFFFFF",
|
||||||
|
"background": "transparent",
|
||||||
|
"properties": {
|
||||||
|
"prefix": ""
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "path",
|
"type": "path",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#0973C0",
|
"foreground": "#0973C0",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"prefix": "",
|
||||||
"style": "short"
|
"style": "short"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -31,6 +45,7 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#C1C106",
|
"foreground": "#C1C106",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "<#ffffff>git:</>"
|
"prefix": "<#ffffff>git:</>"
|
||||||
}
|
}
|
||||||
|
@ -39,6 +54,7 @@
|
||||||
"type": "python",
|
"type": "python",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#100e23",
|
"foreground": "#100e23",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": " \uE235 "
|
"prefix": " \uE235 "
|
||||||
}
|
}
|
||||||
|
@ -47,6 +63,7 @@
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#ffffff",
|
"foreground": "#ffffff",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "",
|
"prefix": "",
|
||||||
"text": "<#CB4B16>\u276F</><#CACA02>\u276F</><#4E9A06>\u276F</>"
|
"text": "<#CB4B16>\u276F</><#CACA02>\u276F</><#4E9A06>\u276F</>"
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
"type": "root",
|
"type": "root",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#E06C75",
|
"foreground": "#E06C75",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"root_icon": "root",
|
"root_icon": "root",
|
||||||
"prefix": "",
|
"prefix": "",
|
||||||
|
@ -18,6 +19,7 @@
|
||||||
"type": "path",
|
"type": "path",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#55B9C4",
|
"foreground": "#55B9C4",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"style": "folder",
|
"style": "folder",
|
||||||
"prefix": ""
|
"prefix": ""
|
||||||
|
@ -27,6 +29,7 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#C678DD",
|
"foreground": "#C678DD",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "<#ffffff>on</> ",
|
"prefix": "<#ffffff>on</> ",
|
||||||
"display_status": true
|
"display_status": true
|
||||||
|
@ -36,6 +39,7 @@
|
||||||
"type": "node",
|
"type": "node",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#98C379",
|
"foreground": "#98C379",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"display_version": true,
|
"display_version": true,
|
||||||
"prefix": "<#ffffff>via</> \uE781 "
|
"prefix": "<#ffffff>via</> \uE781 "
|
||||||
|
@ -45,6 +49,7 @@
|
||||||
"type": "exit",
|
"type": "exit",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#C94A16",
|
"foreground": "#C94A16",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "x",
|
"prefix": "x",
|
||||||
"display_exit_code": false
|
"display_exit_code": false
|
||||||
|
@ -63,6 +68,7 @@
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#63F08C",
|
"foreground": "#63F08C",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "",
|
"prefix": "",
|
||||||
"text": "\u279C"
|
"text": "\u279C"
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
"type": "session",
|
"type": "session",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#E36464",
|
"foreground": "#E36464",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"user_info_separator": "",
|
"user_info_separator": "",
|
||||||
"display_host": false,
|
"display_host": false,
|
||||||
|
@ -18,6 +19,7 @@
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#62ED8B",
|
"foreground": "#62ED8B",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"text": "\u279C",
|
"text": "\u279C",
|
||||||
"postfix": "",
|
"postfix": "",
|
||||||
|
@ -28,6 +30,7 @@
|
||||||
"type": "path",
|
"type": "path",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#56B6C2",
|
"foreground": "#56B6C2",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"style": "folder",
|
"style": "folder",
|
||||||
"postfix": ""
|
"postfix": ""
|
||||||
|
@ -37,17 +40,19 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#D4AAFC",
|
"foreground": "#D4AAFC",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"branch_icon": "",
|
"branch_icon": "",
|
||||||
"display_status": false,
|
"display_status": false,
|
||||||
"prefix": " <#DDB15F>git(</>",
|
"prefix": " <#DDB15F>git(</>",
|
||||||
"postfix": "<#DDB15F>)</>"
|
"postfix": "<#DDB15F>)</>"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "exit",
|
"type": "exit",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#DCB977",
|
"foreground": "#DCB977",
|
||||||
|
"background": "transparent",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "\uD00D",
|
"prefix": "\uD00D",
|
||||||
"display_exit_code": false,
|
"display_exit_code": false,
|
||||||
|
|
Loading…
Reference in a new issue