Files
.config/ohmyposh/wopian.omp.json
2025-09-23 14:01:30 +02:00

116 lines
2.9 KiB
JSON

{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"palette": {
"error": "#ff5555",
"primary": "#bd93f9",
"secondary": "#ffb86c",
"text": "#f8f8f2"
},
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"style": "powerline",
"template": "{{ .Icon }}",
"foreground": "p:primary",
"background": "",
"type": "os"
},
{
"properties": {
"style": "full"
},
"style": "plain",
"template": " {{ .Path }} ",
"foreground": "p:primary",
"background": "",
"type": "path"
},
{
"style": "plain",
"template": ":: {{ .HEAD }}",
"foreground": "p:secondary",
"background": "",
"type": "git"
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"properties": {
"display_mode": "files",
"fetch_package_manager": true,
"fetch_version": true,
"npm_icon": "/npm",
"yarn_icon": "/yarn"
},
"style": "plain",
"template": " {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}",
"foreground": "p:primary",
"background": "",
"type": "node"
},
{
"properties": {
"display_mode": "files",
"fetch_version": true
},
"style": "plain",
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
"foreground": "p:error",
"background": "",
"type": "crystal"
},
{
"properties": {
"display_mode": "files",
"fetch_version": true
},
"style": "plain",
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
"foreground": "p:error",
"background": "",
"type": "ruby"
},
{
"properties": {
"display_mode": "context",
"fetch_virtual_env": false
},
"style": "plain",
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
"foreground": "p:primary",
"background": "",
"type": "python"
}
]
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"properties": {
"always_enabled": true
},
"style": "powerline",
"template": "➜ ",
"foreground": "p:primary",
"background": "",
"type": "status",
"foreground_templates": [
"{{ if gt .Code 0 }}red{{ end }}"
]
}
],
"newline": true
}
],
"version": 3
}