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

113 lines
2.7 KiB
JSON

{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "os",
"style": "powerline",
"foreground": "cyan",
"properties": {
"prefix": "",
"postfix": "",
"template": "{{ .Icon }}"
}
},
{
"type": "path",
"style": "plain",
"foreground": "cyan",
"properties": {
"style": "full"
}
},
{
"type": "git",
"style": "plain",
"foreground": "lightYellow",
"properties": {
"prefix": ":: <lightBlue>git(</>",
"postfix": "<lightBlue>)</>",
"template": "{{ .HEAD }}"
}
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "node",
"style": "plain",
"foreground": "#68a063",
"properties": {
"fetch_version": true,
"postfix": "",
"display_mode": "files",
"display_package_manager": true,
"yarn_icon": "/yarn",
"npm_icon": "/npm"
}
},
{
"type": "crystal",
"style": "plain",
"foreground": "#4063D8",
"properties": {
"fetch_version": true,
"display_mode": "files",
"postfix": ""
}
},
{
"type": "ruby",
"style": "plain",
"foreground": "#DE3F24",
"properties": {
"fetch_version": true,
"postfix": "",
"display_mode": "files"
}
},
{
"type": "python",
"style": "plain",
"foreground": "#FED142",
"properties": {
"fetch_virtual_env": false,
"postfix": "",
"display_mode": "context",
"template": "{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}"
}
},
{
"type": "time",
"style": "plain",
"foreground": "lightGreen"
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "exit",
"style": "powerline",
"foreground": "lightGreen",
"foreground_templates": ["{{ if gt .Code 0 }}red{{ end }}"],
"properties": {
"always_enabled": true,
"template": "\u279c",
"prefix": ""
}
}
]
}
]
}