2021-02-15 21:40:49 -08:00
|
|
|
{
|
2021-11-07 08:42:56 -08:00
|
|
|
"$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
|
2021-02-15 21:40:49 -08:00
|
|
|
}
|
2021-11-07 08:42:56 -08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "prompt",
|
|
|
|
"alignment": "left",
|
|
|
|
"newline": true,
|
|
|
|
"segments": [
|
|
|
|
{
|
|
|
|
"type": "text",
|
|
|
|
"style": "plain",
|
|
|
|
"foreground": "lightBlue",
|
|
|
|
"properties": {
|
|
|
|
"prefix": "",
|
|
|
|
"text": "#"
|
2021-02-15 21:40:49 -08:00
|
|
|
}
|
2021-11-07 08:42:56 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "root",
|
|
|
|
"style": "plain",
|
|
|
|
"foreground": "red",
|
|
|
|
"properties": {
|
|
|
|
"root_icon": "%"
|
2021-02-15 21:40:49 -08:00
|
|
|
}
|
2021-11-07 08:42:56 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "session",
|
|
|
|
"style": "plain",
|
|
|
|
"properties": {
|
|
|
|
"prefix": "",
|
2021-12-03 14:44:58 -08:00
|
|
|
"template": "<cyan>{{ .UserName }}</> <darkGray>@</> <green>{{ .ComputerName }}</>"
|
2021-11-07 08:42:56 -08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "path",
|
|
|
|
"style": "plain",
|
|
|
|
"foreground": "lightYellow",
|
|
|
|
"properties": {
|
|
|
|
"prefix": "<darkGray>in </>",
|
|
|
|
"style": "full"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "git",
|
|
|
|
"style": "plain",
|
|
|
|
"properties": {
|
|
|
|
"prefix": "<darkGray>on</> <white>git:</>",
|
2021-11-09 08:13:47 -08:00
|
|
|
"template": "{{ .HEAD }}"
|
2021-11-07 08:42:56 -08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "time",
|
|
|
|
"style": "plain",
|
|
|
|
"foreground": "darkGray",
|
|
|
|
"properties": {
|
|
|
|
"prefix": "[",
|
|
|
|
"postfix": "]"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "exit",
|
|
|
|
"style": "plain",
|
|
|
|
"foreground": "red",
|
|
|
|
"properties": {
|
2021-11-14 04:39:00 -08:00
|
|
|
"template": "C:{{ if gt .Code 0 }}{{ .Code }}{{ end }}",
|
2021-11-07 08:42:56 -08:00
|
|
|
"always_numeric": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "prompt",
|
|
|
|
"alignment": "left",
|
|
|
|
"newline": true,
|
|
|
|
"segments": [
|
|
|
|
{
|
|
|
|
"type": "text",
|
|
|
|
"style": "plain",
|
|
|
|
"foreground": "lightRed",
|
|
|
|
"properties": {
|
|
|
|
"prefix": "",
|
|
|
|
"text": "$",
|
|
|
|
"postfix": ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"final_space": true
|
|
|
|
}
|