mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-26 11:34:04 -08:00
149 lines
4.4 KiB
JSON
149 lines
4.4 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"blocks": [
|
|
{
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"background": "#4707a8",
|
|
"foreground": "#000000",
|
|
"leading_diamond": "\ue0c2\ue0c2",
|
|
"style": "diamond",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"background": "#4707a8",
|
|
"foreground": "#ffffff",
|
|
"leading_diamond": "\ue0b6",
|
|
"style": "diamond",
|
|
"template": " {{ .UserName }}@{{ .HostName }} ",
|
|
"trailing_diamond": "\ue0b0",
|
|
"type": "session"
|
|
},
|
|
{
|
|
"background": "#1a1af5",
|
|
"foreground": "#ffffff",
|
|
"trailing_diamond": "\ue0b0",
|
|
"style": "diamond",
|
|
"template": " \uebd8 {{ .Name }} ",
|
|
"type": "az"
|
|
},
|
|
{
|
|
"background": "#4707a8",
|
|
"background_templates": [
|
|
"{{ if gt .Code 0 }}#f1184c{{ end }}"
|
|
],
|
|
"foreground": "#ffffff",
|
|
"properties": {
|
|
"always_enabled": true
|
|
},
|
|
"style": "diamond",
|
|
"template": " \ue23a ",
|
|
"leading_diamond": "<transparent>\ue0b0</>",
|
|
"trailing_diamond": "\ue0b4",
|
|
"type": "status"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
},
|
|
{
|
|
"alignment": "left",
|
|
"newline": true,
|
|
"segments": [
|
|
{
|
|
"background": "#ffffff",
|
|
"foreground": "#000000",
|
|
"leading_diamond": "\ue0c2\ue0c2",
|
|
"properties": {
|
|
"alpine": "\uf300",
|
|
"arch": "\uf303",
|
|
"centos": "\uf304",
|
|
"debian": "\uf306",
|
|
"elementary": "\uf309",
|
|
"fedora": "\uf30a",
|
|
"gentoo": "\uf30d",
|
|
"linux": "\ue712",
|
|
"macos": "\ue711",
|
|
"manjaro": "\uf312",
|
|
"mint": "\uf30f",
|
|
"opensuse": "\uf314",
|
|
"raspbian": "\uf315",
|
|
"ubuntu": "\uf31c",
|
|
"windows": "\ue70f"
|
|
},
|
|
"style": "diamond",
|
|
"template": " {{ if .WSL }}\ue712 on {{ end }}{{ .Icon }}<#000000> \ue0b1</>",
|
|
"type": "os"
|
|
},
|
|
{
|
|
"background": "#000000",
|
|
"foreground": "#ffffff",
|
|
"style": "diamond",
|
|
"template": " \uf0e7<#ffffff> \ue0b1</>",
|
|
"type": "root"
|
|
},
|
|
{
|
|
"background": "#ffffff",
|
|
"foreground": "#000000",
|
|
"properties": {
|
|
"folder_icon": "<#000000>\ue5fe </>",
|
|
"folder_separator_icon": "<#000000>\ue0b1 </>",
|
|
"home_icon": "\ueb06 ",
|
|
"style": "agnoster_short"
|
|
},
|
|
"style": "diamond",
|
|
"template": "<#000000> \ue5ff </>{{ .Path }} ",
|
|
"type": "path"
|
|
},
|
|
{
|
|
"background": "#ffffff",
|
|
"foreground": "#000000",
|
|
"foreground_templates": [
|
|
"{{ if or (.Working.Changed) (.Staging.Changed) }}#ffea00{{ end }}",
|
|
"{{ if gt .Ahead 0 }}#2EC4B6{{ end }}",
|
|
"{{ if gt .Behind 0 }}#8A4FFF{{ end }}"
|
|
],
|
|
"properties": {
|
|
"fetch_stash_count": true,
|
|
"fetch_status": true,
|
|
"fetch_upstream_icon": true
|
|
},
|
|
"style": "diamond",
|
|
"template": "<#000000>\ue0b1 </>{{ .UpstreamIcon }}{{ .HEAD }}{{ if .Staging.Changed }}<#2FDA4E> \uf046 {{ .Staging.String }}</>{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }}<#E84855> \uf044 {{ .Working.String }}</>{{ end }} ",
|
|
"type": "git"
|
|
},
|
|
{
|
|
"background": "#ffffff",
|
|
"foreground": "#000000",
|
|
"style": "powerline",
|
|
"template": " {{ .WorkspaceName }} ",
|
|
"type": "terraform"
|
|
},
|
|
{
|
|
"background": "#ffffff",
|
|
"foreground": "#000000",
|
|
"style": "diamond",
|
|
"trailing_diamond": "\ue0b0",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
},
|
|
{
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"foreground": "#1a1af5",
|
|
"style": "plain",
|
|
"template": " \u276f ",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
}
|
|
],
|
|
"console_title_template": "{{if .Root}}root :: {{end}}{{.Shell}} :: {{.Folder}}",
|
|
"final_space": true,
|
|
"version": 3
|
|
}
|