121 lines
3.8 KiB
JSON
121 lines
3.8 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"blocks": [
|
|
{
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"background": "#076678",
|
|
"foreground": "#EBDBB2",
|
|
"leading_diamond": "\ue0b6",
|
|
"style": "diamond",
|
|
"template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ",
|
|
"type": "os"
|
|
},
|
|
{
|
|
"background": "#AF3A03",
|
|
"foreground": "#EBDBB2",
|
|
"powerline_symbol": "\ue0b0",
|
|
"style": "powerline",
|
|
"template": " \uf0e7 ",
|
|
"type": "root"
|
|
},
|
|
{
|
|
"background": "#076678",
|
|
"foreground": "#EBDBB2",
|
|
"powerline_symbol": "\ue0b0",
|
|
"style": "powerline",
|
|
"template": " {{ if .SSHSession }}\ueba9 {{ end }}{{ .UserName }}@{{ .HostName }} ",
|
|
"type": "session"
|
|
},
|
|
{
|
|
"background": "#B57614",
|
|
"foreground": "#EBDBB2",
|
|
"powerline_symbol": "\ue0b0",
|
|
"properties": {
|
|
"style": "full"
|
|
},
|
|
"style": "powerline",
|
|
"template": " \ue5ff {{ .Path }} ",
|
|
"type": "path"
|
|
},
|
|
{
|
|
"background": "#79740E",
|
|
"foreground": "#EBDBB2",
|
|
"powerline_symbol": "\ue0b0",
|
|
"properties": {
|
|
"time_format": "2006-01-02 15:04:05"
|
|
},
|
|
"style": "powerline",
|
|
"template": " {{ .CurrentDate | date .Format }} ",
|
|
"type": "time"
|
|
},
|
|
{
|
|
"type": "project",
|
|
"style": "powerline",
|
|
"powerline_symbol": "",
|
|
"foreground": "#193549",
|
|
"background": "#ffeb3b",
|
|
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ if .Version }} {{.Version}}{{ end }} {{ if .Name }}{{ .Name }}{{ end }}{{ end }} "
|
|
},
|
|
{
|
|
"type": "git",
|
|
"style": "powerline",
|
|
"powerline_symbol": "",
|
|
"background": "#427b58",
|
|
"foreground": "#EBDBB2",
|
|
"background_templates": [
|
|
"{{ if or (.Working.Changed) (.Staging.Changed) }}#8f3f71{{ end }}",
|
|
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#076678{{ end }}",
|
|
"{{ if gt .Ahead 0 }}#076678{{ end }}",
|
|
"{{ if gt .Behind 0 }}#076678{{ 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_upstream_icon": true,
|
|
"untracked_modes": {
|
|
"/Users/user/Projects/oh-my-posh/": "no"
|
|
},
|
|
"source": "cli",
|
|
"mapped_branches": {
|
|
"feat/*": "🚀 ",
|
|
"bug/*": "🐛 "
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"background": "#427B58",
|
|
"background_templates": [
|
|
"{{ if gt .Code 0 }}#9D0006{{ end }}"
|
|
],
|
|
"foreground": "#EBDBB2",
|
|
"leading_diamond": "<transparent,background>\ue0b0</>",
|
|
"properties": {
|
|
"always_enabled": true
|
|
},
|
|
"style": "diamond",
|
|
"template": " \ueb05 ",
|
|
"trailing_diamond": "\ue0b4",
|
|
"type": "status"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
},
|
|
{
|
|
"alignment": "left",
|
|
"newline": true,
|
|
"segments": [
|
|
{
|
|
"foreground": "#076678",
|
|
"style": "plain",
|
|
"template": "\uf0a9 ",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
}
|
|
],
|
|
"final_space": true,
|
|
"version": 2
|
|
}
|