theme: add cobalt2

This commit is contained in:
Kamil Kras 2022-07-24 08:38:01 +02:00 committed by GitHub
parent 767e8e7bcf
commit 4e99d184f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

44
themes/cobalt2.omp.json Normal file
View 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
}