mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 04:19:41 -08:00
7aafc96e7d
Simple theme, yet unlike others.
91 lines
2.6 KiB
JSON
91 lines
2.6 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"blocks": [
|
|
{
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"background": "#880000",
|
|
"foreground": "#ff8888",
|
|
"properties": {
|
|
"template": " {{ if gt .Code 0 }}\uf00d {{ .Code }}{{ else }}\uf42e{{ end }} "
|
|
},
|
|
"style": "plain",
|
|
"type": "exit"
|
|
},
|
|
{
|
|
"background": "#ffcc88",
|
|
"foreground": "#222222",
|
|
"properties": {
|
|
"template": "\uf0e7"
|
|
},
|
|
"style": "plain",
|
|
"type": "root"
|
|
},
|
|
{
|
|
"background": "#222222",
|
|
"foreground": "#666666",
|
|
"powerline_symbol": "\ue0b8",
|
|
"properties": {
|
|
"template": " {{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }}@{{ .HostName }} "
|
|
},
|
|
"style": "plain",
|
|
"type": "session"
|
|
},
|
|
{
|
|
"background": "#444444",
|
|
"foreground": "#cccccc",
|
|
"powerline_symbol": "\ue0b8",
|
|
"properties": {
|
|
"folder_icon": "\u2026",
|
|
"style": "mixed",
|
|
"template": " {{ .Path }} "
|
|
},
|
|
"style": "plain",
|
|
"type": "path"
|
|
},
|
|
{
|
|
"background": "#f14e32",
|
|
"foreground": "#f0efe7",
|
|
"powerline_symbol": "\ue0b8",
|
|
"properties": {
|
|
"branch_icon": "\ue725 ",
|
|
"fetch_status": true,
|
|
"fetch_upstream_icon": false,
|
|
"template": " {{ .HEAD }} {{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0}} \uf692 {{ .StashCount }}{{ end }}{{ if gt .WorktreeCount 0}} \uf1bb {{ .WorktreeCount }}{{ end }} "
|
|
},
|
|
"style": "plain",
|
|
"type": "git"
|
|
},
|
|
{
|
|
"background": "#7014eb",
|
|
"foreground": "#ffffff",
|
|
"powerline_symbol": "\ue0b8",
|
|
"properties": {
|
|
"template": " \ue77f {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }} "
|
|
},
|
|
"style": "plain",
|
|
"type": "dotnet"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
},
|
|
{
|
|
"alignment": "left",
|
|
"newline": true,
|
|
"segments": [
|
|
{
|
|
"foreground": "#007ACC",
|
|
"properties": {
|
|
"template": "\u276f "
|
|
},
|
|
"style": "plain",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
}
|
|
],
|
|
"version": 1
|
|
}
|