oh-my-posh/themes/bubblesextra.omp.json
Jan De Dobbeleer 28f6c19309 feat(git): replace branch properties with template
BREAKING CHANGE: this removes branch properties from the git segment
and replaces them with a single template. To migrate, use the following
guide.

*branch_max_length*

`"branch_max_length": 5` -> `"branch_template": "{{ trunc 5 .Branch }}"`

This will turn `feature/test-this-branch` into `featu`

If you want to display a truncate symbol at the end of the branch name:

`"branch_template": "{{ truncE 5 .Branch }}"`

This will turn `feature/test-this-branch` into `feat…`

*full_branch_path*

`"full_branch_path": false` -> `"branch_template": "{{ base .Branch }}"`

This will turn `feature/test-this-branch` into `test-this-branch`
2025-02-27 08:48:41 +01:00

179 lines
5.8 KiB
JSON
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "right",
"segments": [
{
"background": "#29315A",
"foreground": "#3EC669",
"leading_diamond": "\ue0b6",
"properties": {
"style": "folder"
},
"style": "diamond",
"template": "\ue5ff {{ .Path }}",
"trailing_diamond": "\ue0b4",
"type": "path"
},
{
"background": "#29315A",
"foreground": "#43CCEA",
"foreground_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#FF9248{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ff4500{{ end }}",
"{{ if gt .Ahead 0 }}#B388FF{{ end }}",
"{{ if gt .Behind 0 }}#B388FF{{ end }}"
],
"leading_diamond": " \ue0b6",
"properties": {
"branch_template": "{{ trunc 25 .Branch }}",
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true
},
"style": "diamond",
"template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ 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 }} \ueb4b {{ .StashCount }}{{ end }} ",
"trailing_diamond": "\ue0b4",
"type": "git"
},
{
"background": "#29315A",
"foreground": "#E4F34A",
"leading_diamond": " \ue0b6",
"properties": {
"fetch_version": false
},
"style": "diamond",
"template": "\ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}",
"trailing_diamond": "\ue0b4",
"type": "python"
},
{
"background": "#29315A",
"foreground": "#7FD5EA",
"leading_diamond": " \ue0b6",
"properties": {
"fetch_version": false
},
"style": "diamond",
"template": "\ue626{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
"trailing_diamond": "\ue0b4",
"type": "go"
},
{
"background": "#29315A",
"foreground": "#42E66C",
"leading_diamond": " \ue0b6",
"properties": {
"fetch_version": false
},
"style": "diamond",
"template": "\ue718{{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}",
"trailing_diamond": "\ue0b4",
"type": "node"
},
{
"background": "#29315A",
"foreground": "#E64747",
"leading_diamond": " \ue0b6",
"properties": {
"fetch_version": false
},
"style": "diamond",
"template": "\ue791{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
"trailing_diamond": "\ue0b4",
"type": "ruby"
},
{
"background": "#29315A",
"foreground": "#E64747",
"leading_diamond": " \ue0b6",
"properties": {
"fetch_version": false
},
"style": "diamond",
"template": "\ue738{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
"trailing_diamond": "\ue0b4",
"type": "java"
},
{
"background": "#29315A",
"foreground": "#9B6BDF",
"leading_diamond": " \ue0b6",
"properties": {
"fetch_version": false
},
"style": "diamond",
"template": "\ue624{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"trailing_diamond": "\ue0b4",
"type": "julia"
},
{
"type": "php",
"style": "diamond",
"foreground": "#ffffff",
"background": "#4063D8",
"leading_diamond": " \ue0b6",
"properties": {
"fetch_version": false
},
"template": "\ue73d {{ .Full }} ",
"trailing_diamond": "\ue0b4"
},
{
"background": "#29315A",
"foreground": "#9B6BDF",
"foreground_templates": [
"{{if eq \"Charging\" .State.String}}#40c4ff{{end}}",
"{{if eq \"Discharging\" .State.String}}#ff5722{{end}}",
"{{if eq \"Full\" .State.String}}#4caf50{{end}}"
],
"leading_diamond": " \ue0b6",
"properties": {
"charged_icon": "• ",
"charging_icon": "\u21e1 ",
"discharging_icon": "\u21e3 "
},
"style": "diamond",
"template": "{{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}",
"trailing_diamond": "\ue0b4",
"type": "battery"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"background": "#29315A",
"foreground": "#AEA4BF",
"leading_diamond": "\ue0b6",
"properties": {
"style": "austin",
"threshold": 150
},
"style": "diamond",
"template": "{{ .FormattedMs }}",
"trailing_diamond": "\ue0b4 ",
"type": "executiontime"
},
{
"background": "#29315A",
"foreground": "#E64747",
"leading_diamond": "\ue0b6",
"style": "diamond",
"template": "{{ .UserName }} \u276f",
"trailing_diamond": "\ue0b4",
"type": "text"
}
],
"type": "prompt"
}
],
"final_space": true,
"version": 3
}