M365Princess_Re.omp.json
· 3.2 KiB · JSON
原始文件
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"palette": {
"white": "#FFFFFF",
"tan": "#CC3802",
"teal": "#047E84",
"plum": "#9A348E",
"blush": "#DA627D",
"salmon": "#FCA17D",
"sky": "#86BBD8",
"teal_blue": "#33658A"
},
"blocks": [
{
"alignment": "left",
"segments": [
{
"type": "text",
"style": "diamond",
"leading_diamond": "\ue0b6",
"foreground": "p:white",
"background": "p:tan",
"template": "{{ if .Env.PNPPSHOST }} \uf8c5 {{ .Env.PNPPSHOST }} {{ end }}"
},
{
"type": "text",
"style": "powerline",
"foreground": "p:white",
"background": "p:teal",
"powerline_symbol": "\ue0b0",
"template": "{{ if .Env.PNPPSSITE }} \uf2dd {{ .Env.PNPPSSITE }}{{ end }}"
},
{
"type": "text",
"style": "diamond",
"trailing_diamond": "\ue0b4",
"foreground": "p:white",
"background": "p:teal",
"template": "{{ if .Env.PNPPSSITE }}\u00A0{{ end }}"
}
],
"type": "rprompt"
},
{
"alignment": "left",
"segments": [
{
"background": "p:plum",
"foreground": "p:white",
"leading_diamond": "\ue0b6",
"style": "diamond",
"template": "{{ .UserName }} ",
"type": "session"
},
{
"background": "p:blush",
"foreground": "p:white",
"powerline_symbol": "\ue0b0",
"properties": {
"style": "folder"
},
"style": "powerline",
"template": " {{ .Path }} ",
"type": "path"
},
{
"background": "p:salmon",
"foreground": "p:white",
"powerline_symbol": "\ue0b0",
"properties": {
"branch_icon": "",
"fetch_stash_count": true,
"fetch_status": false,
"fetch_upstream_icon": true
},
"style": "powerline",
"template": " \u279c ({{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }}) ",
"type": "git"
},
{
"background": "p:sky",
"foreground": "p:white",
"powerline_symbol": "\ue0b0",
"style": "powerline",
"template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ",
"type": "node"
},
{
"background": "p:teal_blue",
"foreground": "p:white",
"properties": {
"time_format": "15:04"
},
"style": "diamond",
"template": " \u2665 {{ .CurrentDate | date .Format }} ",
"trailing_diamond": "\ue0b0",
"type": "time"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "p:blush",
"style": "plain",
"template": "\u279c ",
"type": "text"
}
],
"type": "prompt"
}
],
"final_space": true,
"version": 2
}
| 1 | { |
| 2 | "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", |
| 3 | "palette": { |
| 4 | "white": "#FFFFFF", |
| 5 | "tan": "#CC3802", |
| 6 | "teal": "#047E84", |
| 7 | "plum": "#9A348E", |
| 8 | "blush": "#DA627D", |
| 9 | "salmon": "#FCA17D", |
| 10 | "sky": "#86BBD8", |
| 11 | "teal_blue": "#33658A" |
| 12 | }, |
| 13 | "blocks": [ |
| 14 | { |
| 15 | "alignment": "left", |
| 16 | "segments": [ |
| 17 | { |
| 18 | "type": "text", |
| 19 | "style": "diamond", |
| 20 | "leading_diamond": "\ue0b6", |
| 21 | "foreground": "p:white", |
| 22 | "background": "p:tan", |
| 23 | "template": "{{ if .Env.PNPPSHOST }} \uf8c5 {{ .Env.PNPPSHOST }} {{ end }}" |
| 24 | }, |
| 25 | { |
| 26 | "type": "text", |
| 27 | "style": "powerline", |
| 28 | "foreground": "p:white", |
| 29 | "background": "p:teal", |
| 30 | "powerline_symbol": "\ue0b0", |
| 31 | "template": "{{ if .Env.PNPPSSITE }} \uf2dd {{ .Env.PNPPSSITE }}{{ end }}" |
| 32 | }, |
| 33 | { |
| 34 | "type": "text", |
| 35 | "style": "diamond", |
| 36 | "trailing_diamond": "\ue0b4", |
| 37 | "foreground": "p:white", |
| 38 | "background": "p:teal", |
| 39 | "template": "{{ if .Env.PNPPSSITE }}\u00A0{{ end }}" |
| 40 | } |
| 41 | ], |
| 42 | "type": "rprompt" |
| 43 | }, |
| 44 | { |
| 45 | "alignment": "left", |
| 46 | "segments": [ |
| 47 | { |
| 48 | "background": "p:plum", |
| 49 | "foreground": "p:white", |
| 50 | "leading_diamond": "\ue0b6", |
| 51 | "style": "diamond", |
| 52 | "template": "{{ .UserName }} ", |
| 53 | "type": "session" |
| 54 | }, |
| 55 | { |
| 56 | "background": "p:blush", |
| 57 | "foreground": "p:white", |
| 58 | "powerline_symbol": "\ue0b0", |
| 59 | "properties": { |
| 60 | "style": "folder" |
| 61 | }, |
| 62 | "style": "powerline", |
| 63 | "template": " {{ .Path }} ", |
| 64 | "type": "path" |
| 65 | }, |
| 66 | { |
| 67 | "background": "p:salmon", |
| 68 | "foreground": "p:white", |
| 69 | "powerline_symbol": "\ue0b0", |
| 70 | "properties": { |
| 71 | "branch_icon": "", |
| 72 | "fetch_stash_count": true, |
| 73 | "fetch_status": false, |
| 74 | "fetch_upstream_icon": true |
| 75 | }, |
| 76 | "style": "powerline", |
| 77 | "template": " \u279c ({{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }}) ", |
| 78 | "type": "git" |
| 79 | }, |
| 80 | { |
| 81 | "background": "p:sky", |
| 82 | "foreground": "p:white", |
| 83 | "powerline_symbol": "\ue0b0", |
| 84 | "style": "powerline", |
| 85 | "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ", |
| 86 | "type": "node" |
| 87 | }, |
| 88 | { |
| 89 | "background": "p:teal_blue", |
| 90 | "foreground": "p:white", |
| 91 | "properties": { |
| 92 | "time_format": "15:04" |
| 93 | }, |
| 94 | "style": "diamond", |
| 95 | "template": " \u2665 {{ .CurrentDate | date .Format }} ", |
| 96 | "trailing_diamond": "\ue0b0", |
| 97 | "type": "time" |
| 98 | } |
| 99 | ], |
| 100 | "type": "prompt" |
| 101 | }, |
| 102 | { |
| 103 | "alignment": "left", |
| 104 | "newline": true, |
| 105 | "segments": [ |
| 106 | { |
| 107 | "foreground": "p:blush", |
| 108 | "style": "plain", |
| 109 | "template": "\u279c ", |
| 110 | "type": "text" |
| 111 | } |
| 112 | ], |
| 113 | "type": "prompt" |
| 114 | } |
| 115 | ], |
| 116 | "final_space": true, |
| 117 | "version": 2 |
| 118 | } |
| 119 |