mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 04:54:03 -08:00
116 lines
3.5 KiB
JSON
116 lines
3.5 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"osc99": true,
|
|
"blocks": [
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"type": "text",
|
|
"style": "plain",
|
|
"foreground": "#ffce7b",
|
|
"properties": {
|
|
"prefix": "",
|
|
"template": "\u250c"
|
|
}
|
|
},
|
|
{
|
|
"type": "session",
|
|
"style": "powerline",
|
|
"powerline_symbol": "\ue0b0",
|
|
"foreground": "#1d1626",
|
|
"background": "#ffce7b"
|
|
},
|
|
{
|
|
"type": "path",
|
|
"style": "powerline",
|
|
"powerline_symbol": "\ue0b0",
|
|
"foreground": "#fffef9",
|
|
"background": "#C678DD",
|
|
"properties": {
|
|
"style": "full",
|
|
"enable_hyperlink": false
|
|
}
|
|
},
|
|
{
|
|
"type": "git",
|
|
"style": "powerline",
|
|
"powerline_symbol": "\ue0b0",
|
|
"foreground": "#100e23",
|
|
"background": "#fffffb",
|
|
"background_templates": [
|
|
"{{ if or (.Working.Changed) (.Staging.Changed) }}#ffeb95{{ end }}",
|
|
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#fcaf17{{ end }}",
|
|
"{{ if gt .Ahead 0 }}#95ffa4{{ end }}",
|
|
"{{ if gt .Behind 0 }}#f391a9{{ end }}"
|
|
],
|
|
"properties": {
|
|
"fetch_status": true,
|
|
"fetch_stash_count": true,
|
|
"fetch_worktree_count": true,
|
|
"fetch_upstream_icon": true,
|
|
"branch_icon": "\uE0A0 ",
|
|
"commit_icon": "\uF417 ",
|
|
"tag_icon": "\uF412 ",
|
|
"github_icon": "\uF408 ",
|
|
"gitlab_icon": "\uF296 ",
|
|
"bitbucket_icon": "\uF171 ",
|
|
"azure_devops_icon": "\uFD03 ",
|
|
"git_icon": "\uE5FB ",
|
|
"branch_identical_icon": "\uF44E ",
|
|
"branch_gone_icon": "\uF467 ",
|
|
"template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} <#ed1941>\uF044 {{.Working.String}}</>{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} <#225a1f>\uF046 {{.Staging.String}}</>{{ end }}{{ if gt .StashCount 0 }} \uF692 {{.StashCount}}{{ end }}{{ if gt .WorktreeCount 0 }}{{if .IsWorkTree}}<#1d953f>{{ end }} \uF1BB {{if .IsWorkTree}}</>{{ end }}{{.WorktreeCount}}{{ end }}"
|
|
}
|
|
},
|
|
{
|
|
"type": "exit",
|
|
"style": "powerline",
|
|
"powerline_symbol": "\ue0b0",
|
|
"foreground": "#ffffff",
|
|
"background": "#ed1941",
|
|
"properties": {
|
|
"prefix": " \uF12A >>",
|
|
"template": "{{ .Text }}"
|
|
}
|
|
},
|
|
{
|
|
"type": "executiontime",
|
|
"style": "powerline",
|
|
"powerline_symbol": "\uE0B0",
|
|
"foreground": "#ffffff",
|
|
"background": "#6f6d85"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "left",
|
|
"newline": true,
|
|
"segments": [
|
|
{
|
|
"type": "text",
|
|
"style": "plain",
|
|
"foreground": "#ffce7b",
|
|
"properties": {
|
|
"prefix": "",
|
|
"postfix": "",
|
|
"text": "\u2514 "
|
|
}
|
|
},
|
|
{
|
|
"type": "text",
|
|
"style": "plain",
|
|
"foreground": "#ffffff",
|
|
"properties": {
|
|
"prefix": "",
|
|
"postfix": "",
|
|
"text": "<b>$</b>"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"final_space": true
|
|
}
|