mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -08:00
74 lines
2.1 KiB
JSON
74 lines
2.1 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"blocks": [
|
|
{
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"background": "#BF231D",
|
|
"foreground": "#ffffff",
|
|
"properties": {
|
|
"template": " \uf0e7 "
|
|
},
|
|
"style": "plain",
|
|
"type": "root"
|
|
},
|
|
{
|
|
"background": "#0A703E",
|
|
"foreground": "#ffffff",
|
|
"properties": {
|
|
"template": " {{ .Icon }} "
|
|
},
|
|
"style": "plain",
|
|
"type": "os"
|
|
},
|
|
{
|
|
"background": "#0A703E",
|
|
"foreground": "#ffffff",
|
|
"properties": {
|
|
"template": "{{ .UserName }} "
|
|
},
|
|
"style": "plain",
|
|
"type": "session"
|
|
},
|
|
{
|
|
"background": "#256C9D",
|
|
"foreground": "#ffffff",
|
|
"properties": {
|
|
"folder_icon": "\uf115",
|
|
"folder_separator_icon": " \ue0b1 ",
|
|
"max_depth": 2,
|
|
"style": "agnoster_short",
|
|
"template": " {{ .Path }} "
|
|
},
|
|
"style": "plain",
|
|
"type": "path"
|
|
},
|
|
{
|
|
"background": "#256C9D",
|
|
"foreground": "#ffffff",
|
|
"properties": {
|
|
"branch_max_length": 30,
|
|
"fetch_stash_count": false,
|
|
"fetch_status": true,
|
|
"fetch_upstream_icon": true,
|
|
"template": "[ {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ]"
|
|
},
|
|
"style": "plain",
|
|
"type": "git"
|
|
},
|
|
{
|
|
"foreground": "#256C9D",
|
|
"properties": {
|
|
"template": "\ue0b0 "
|
|
},
|
|
"style": "plain",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
}
|
|
],
|
|
"version": 1
|
|
}
|