oh-my-posh/themes/markbull.omp.json
markbull 9955d9bbb8 theme: update markbull
1. Show the root/admin icon and the current folder name in console title
2. Update the background color of behind status in git segment
3. Update the git_icon, branch_identical_icon and branch_gone_icon in git segment
2022-01-23 09:36:37 +01:00

119 lines
3.6 KiB
JSON

{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"osc99": true,
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{if .Root}}\u26a1 {{end}}{{.Folder}}",
"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 }}#f7acbc{{ 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": "\uF1D3 ",
"branch_identical_icon": "\uF690 ",
"branch_gone_icon": "\uF68E ",
"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
}