pwsh-conf/theme.omp.json

150 lines
4.4 KiB
JSON

{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"version": 2,
"final_space": true,
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "root",
"style": "plain",
"foreground": "#ffee58",
"template": " \uf0e7 "
},
{
"type": "exit",
"style": "powerline",
"foreground": "#06884b",
"foreground_templates": ["{{ if gt .Code 0 }}#e61010{{ end }}"],
"template": " {{ if gt .Code 0 }}✗{{ else }}✔{{ end }} ",
"properties": {
"always_enabled": true
}
},
{
"type": "session",
"style": "plain",
"foreground": "#ddd",
"template": " {{ if .SSHSession }}\udb80\udf18 {{ end }}{{ .UserName }}{{ if .SSHSession }}@{{ .HostName }}{{ end }}",
"properties": {
"display_host": false
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "go",
"style": "powerline",
"foreground": "#ffffff",
"background": "#983ebb",
"template": " \udb81\udfd3 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} "
},
{
"type": "python",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "#ffffff",
"background": "#983ebb",
"template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ",
"properties": {
"display_mode": "context",
"home_enabled": true
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "os",
"style": "plain",
"foreground": "#8e24aa",
"template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} "
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "#ffffff",
"background": "#3156c4",
"template": " {{ .Path }} ",
"properties": {
"folder_separator_icon": " \ue0b1 ",
"home_icon": "\uf015 ",
"style": "letter"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#193549",
"background": "#ffeb3b",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#FFEB3B{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#FFCC80{{ end }}",
"{{ if gt .Ahead 0 }}#B388FF{{ end }}",
"{{ if gt .Behind 0 }}#B388FB{{ end }}"
],
"template": "{{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }}  {{ .StashCount }}{{ end }}",
"properties": {
"fetch_status": true,
"fetch_stash_count": true,
"fetch_upstream_icon": true,
"untracked_modes": {
"/Users/user/Projects/oh-my-posh/": "no"
}
}
}
]
},
{
"type": "rprompt",
"alignment": "right",
"segments": [
{
"type": "executiontime",
"style": "plain",
"powerline_symbol": "\ue0b0",
"foreground": "#8454bb",
"template": " <#fefefe>\udb81\udead</> {{ .FormattedMs }} ",
"properties": {
"style": "austin",
"threshold": 500
}
},
{
"type": "time",
"style": "plain",
"foreground": "#007ACC",
"template": " {{ .CurrentDate | date .Format }} ",
"properties": {
"time_format": "[15:04:05]"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "text",
"style": "powerline",
"foreground": "#3156c4",
"template": " \u276f "
}
],
"newline": true
}
]
}