mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-26 19:39:39 -08:00
theme: add cobalt2
This commit is contained in:
parent
767e8e7bcf
commit
4e99d184f6
44
themes/cobalt2.omp.json
Normal file
44
themes/cobalt2.omp.json
Normal file
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
||||
"blocks": [
|
||||
{
|
||||
"alignment": "left",
|
||||
"segments": [
|
||||
{
|
||||
"background": "#1478DB",
|
||||
"foreground": "#000000",
|
||||
"leading_diamond": "\ue0b6",
|
||||
"trailing_diamond": "\uE0B0",
|
||||
"properties": {
|
||||
"style": "full"
|
||||
},
|
||||
"style": "diamond",
|
||||
"template": "{{ .Path }} ",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"background": "#3AD900",
|
||||
"background_templates": [
|
||||
"{{ if or (.Working.Changed) (.Staging.Changed) }}#FFC600{{ end }}",
|
||||
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#FFCC80{{ end }}",
|
||||
"{{ if gt .Ahead 0 }}#B388FF{{ end }}",
|
||||
"{{ if gt .Behind 0 }}#B388FF{{ end }}"
|
||||
],
|
||||
"foreground": "#000000",
|
||||
"leading_diamond": "<transparent,background>\uE0B0</>",
|
||||
"trailing_diamond": "\ue0b4",
|
||||
"properties": {
|
||||
"fetch_stash_count": true,
|
||||
"fetch_status": true
|
||||
},
|
||||
"style": "diamond",
|
||||
"template": " {{ .HEAD }}{{ if .Staging.Changed }}<#FF6F00> \uf046 {{ .Staging.String }}</>{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ",
|
||||
"type": "git"
|
||||
}
|
||||
],
|
||||
"type": "prompt"
|
||||
}
|
||||
],
|
||||
"final_space": true,
|
||||
"version": 2
|
||||
}
|
Loading…
Reference in a new issue