oh-my-posh/themes/patriksvensson.omp.json

80 lines
2.4 KiB
JSON
Raw Normal View History

2021-07-15 08:05:30 -07:00
{
2022-02-03 01:22:57 -08:00
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
2021-07-15 08:05:30 -07:00
"blocks": [
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "red",
2022-02-03 01:22:57 -08:00
"powerline_symbol": "\ue0b0",
"style": "plain",
2022-03-27 01:12:47 -07:00
"template": "\uf0e7 ",
2022-02-03 01:22:57 -08:00
"type": "root"
},
{
"foreground": "blue",
"properties": {
2022-02-03 01:22:57 -08:00
"folder_icon": "\ue5ff",
"folder_separator_icon": "/",
"home_icon": "\ueb06",
2022-03-27 01:12:47 -07:00
"style": "agnoster"
2022-02-03 01:22:57 -08:00
},
"style": "plain",
2022-03-27 01:12:47 -07:00
"template": "{{ .Path }}",
2022-02-03 01:22:57 -08:00
"type": "path"
},
{
"foreground": "green",
"foreground_templates": [
2021-11-09 08:13:47 -08:00
"{{ if or (.Working.Changed) (.Staging.Changed) }}yellow{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}red{{ end }}",
"{{ if gt .Ahead 0 }}red{{ end }}",
"{{ if gt .Behind 0 }}green{{ end }}"
],
"properties": {
"fetch_stash_count": true,
2022-02-03 01:22:57 -08:00
"fetch_status": true,
2021-11-08 13:56:40 -08:00
"fetch_upstream_icon": true,
2022-03-27 01:12:47 -07:00
"github_icon": "\uf408 "
2022-02-03 01:22:57 -08:00
},
"style": "plain",
"template": " on {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}<red> \uf044 {{ .Working.String }}</>{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<yellow> \uf046 {{ .Staging.String }}</>{{ end }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }}",
2022-02-03 01:22:57 -08:00
"type": "git"
},
{
"foreground": "magenta",
2022-02-03 01:22:57 -08:00
"style": "plain",
2022-03-27 01:12:47 -07:00
"template": " [.NET] {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }} ",
2022-02-03 01:22:57 -08:00
"type": "dotnet"
}
2022-02-03 01:22:57 -08:00
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "yellow",
"properties": {
"time_format": "15:04:05"
2022-02-03 01:22:57 -08:00
},
"style": "plain",
2022-03-27 01:12:47 -07:00
"template": "{{ .CurrentDate | date .Format }} ",
2022-02-03 01:22:57 -08:00
"type": "time"
},
{
"foreground": "green",
2022-02-03 01:22:57 -08:00
"style": "plain",
2022-03-27 01:12:47 -07:00
"template": "\u276f",
2022-02-03 01:22:57 -08:00
"type": "text"
}
2022-02-03 01:22:57 -08:00
],
"type": "prompt"
}
2022-02-03 01:22:57 -08:00
],
"final_space": true,
2022-03-27 01:12:47 -07:00
"version": 2
2021-07-15 08:05:30 -07:00
}