oh-my-posh/themes/ys.omp.json
2022-02-03 10:44:18 +01:00

107 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": ")",
"fetch_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": {
"template": "%"
}
},
{
"type": "session",
"style": "plain",
"properties": {
"prefix": "",
"template": "<cyan>{{ .UserName }}</> <darkGray>@</> <green>{{ .HostName }}</>"
}
},
{
"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
}