mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -08:00
109 lines
2.4 KiB
JSON
109 lines
2.4 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"blocks": [
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"type": "python",
|
|
"style": "plain",
|
|
"foreground": "white",
|
|
"properties": {
|
|
"prefix": "(",
|
|
"postfix": ")",
|
|
"display_version": false
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "left",
|
|
"newline": true,
|
|
"segments": [
|
|
{
|
|
"type": "text",
|
|
"style": "plain",
|
|
"foreground": "lightBlue",
|
|
"properties": {
|
|
"prefix": "",
|
|
"text": "#"
|
|
}
|
|
},
|
|
{
|
|
"type": "root",
|
|
"style": "plain",
|
|
"foreground": "red",
|
|
"properties": {
|
|
"root_icon": "%"
|
|
}
|
|
},
|
|
{
|
|
"type": "session",
|
|
"style": "plain",
|
|
"properties": {
|
|
"user_info_separator": " <darkGray>@</> ",
|
|
"prefix": "",
|
|
"user_color": "cyan",
|
|
"host_color": "green"
|
|
}
|
|
},
|
|
{
|
|
"type": "path",
|
|
"style": "plain",
|
|
"foreground": "lightYellow",
|
|
"properties": {
|
|
"prefix": "<darkGray>in </>",
|
|
"style": "full"
|
|
}
|
|
},
|
|
{
|
|
"type": "git",
|
|
"style": "plain",
|
|
"properties": {
|
|
"prefix": "<darkGray>on</> <white>git:</>",
|
|
"template": "{{ .HEAD }}"
|
|
}
|
|
},
|
|
{
|
|
"type": "time",
|
|
"style": "plain",
|
|
"foreground": "darkGray",
|
|
"properties": {
|
|
"prefix": "[",
|
|
"postfix": "]"
|
|
}
|
|
},
|
|
{
|
|
"type": "exit",
|
|
"style": "plain",
|
|
"foreground": "red",
|
|
"properties": {
|
|
"template": "C:{{ if gt .Code 0 }}{{ .Code }}{{ end }}",
|
|
"always_numeric": true
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "left",
|
|
"newline": true,
|
|
"segments": [
|
|
{
|
|
"type": "text",
|
|
"style": "plain",
|
|
"foreground": "lightRed",
|
|
"properties": {
|
|
"prefix": "",
|
|
"text": "$",
|
|
"postfix": ""
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"final_space": true
|
|
}
|