Fix theme for Git.
This commit is contained in:
parent
b3b446599a
commit
c35e62cc96
@ -12,9 +12,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"foreground": "#06884b",
|
"foreground": "#06884b",
|
||||||
"foreground_templates": [
|
"foreground_templates": ["{{ if gt .Code 0 }}#e61010{{ end }}"],
|
||||||
"{{ if gt .Code 0 }}#e61010{{ end }}"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"always_enabled": true
|
"always_enabled": true
|
||||||
},
|
},
|
||||||
@ -96,11 +94,26 @@
|
|||||||
"type": "path"
|
"type": "path"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"foreground": "#193549",
|
"type": "git",
|
||||||
"powerline_symbol": "\ue0b0",
|
|
||||||
"style": "powerline",
|
"style": "powerline",
|
||||||
"template": " {{ .Status }} ",
|
"powerline_symbol": "",
|
||||||
"type": "poshgit"
|
"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": "prompt"
|
"type": "prompt"
|
||||||
|
Loading…
Reference in New Issue
Block a user