From 39be04c37ebb90c5b7e1b80106710251c9a3d0c2 Mon Sep 17 00:00:00 2001 From: markbull Date: Fri, 7 Jan 2022 17:37:56 +0800 Subject: [PATCH] theme: add markbull --- themes/markbull.omp.json | 115 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 themes/markbull.omp.json diff --git a/themes/markbull.omp.json b/themes/markbull.omp.json new file mode 100644 index 00000000..1d8e5818 --- /dev/null +++ b/themes/markbull.omp.json @@ -0,0 +1,115 @@ +{ + "$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": "$" + } + } + ] + } + ], + "final_space": true +}