1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177
| { "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "blocks": [ { "alignment": "left", "segments": [ { "background": "#F4AD35", "foreground": "#011627", "leading_diamond": "\u256d\u2500\ue0b2", "properties": { "macos": "\uf179 ", "ubuntu": "\uf31b ", "windows": "\ue62a " }, "style": "diamond", "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}}", "trailing_diamond": "<transparent,#F4AD35>\ue0b2</>", "type": "os" }, { "background": "#ED7827", "foreground": "#011627", "leading_diamond": "\ue0b2", "properties": { "time_format": "15:04:05" }, "style": "diamond", "template": " \u2665 {{ .CurrentDate | date .Format }} ", "trailing_diamond": "<transparent,#ED7827>\ue0b2</>", "type": "time" }, { "background": "#59C9A5", "foreground": "#ffffff", "leading_diamond": "\ue0b2", "style": "diamond", "template": "\ue266 CPU: {{ round .PhysicalPercentUsed .Precision }}% | ", "type": "sysinfo" }, { "background": "#59C9A5", "foreground": "#ffffff", "style": "diamond", "template": "RAM: {{ (div ((sub .PhysicalTotalMemory .PhysicalFreeMemory)|float64) 1073741824.0) }}/{{ (div .PhysicalTotalMemory 1073741824.0) }}GB \ue266 ", "trailing_diamond": "<transparent,#59C9A5>\ue0b2</>", "type": "sysinfo" }, { "background": "#4B95E9", "foreground": "#d6deeb", "leading_diamond": "\ue0b2", "properties": { "style": "roundrock", "threshold": 0 }, "style": "diamond", "template": " {{ .FormattedMs }} ", "trailing_diamond": "\ue0b0", "type": "executiontime" } ], "type": "prompt" }, { "alignment": "right", "segments": [ { "background": "#ffffff", "foreground": "#000000", "leading_diamond": "\ue0b2", "properties": { "fetch_package_manager": true, "npm_icon": " <#cc3a3a>\ue5fa</> ", "yarn_icon": " <#348cba>\ue6a7</>" }, "style": "diamond", "template": "\ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}", "trailing_diamond": "<transparent,#ffffff>\ue0b2</>", "type": "node" }, { "background": "#EE79D1", "foreground": "#011627", "leading_diamond": "\ue0b2", "properties": { "branch_icon": "\ue725 ", "fetch_stash_count": true, "fetch_status": true, "fetch_upstream_icon": true, "fetch_worktree_count": true }, "style": "diamond", "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }} ", "trailing_diamond": "\ue0b0", "type": "git" } ], "type": "prompt" }, { "alignment": "left", "newline": true, "segments": [ { "foreground": "#F4AD35", "style": "plain", "template": "\u2502", "type": "text" }, { "foreground": "#FFFFFF", "style": "plain", "template": " Hello WAHAHA! Look before you leap!", "type": "text" } ], "type": "prompt" }, { "alignment": "left", "newline": true, "segments": [ { "foreground": "#F4AD35", "style": "plain", "template": "\u2570\u2500[", "type": "text" }, { "foreground": "#ffafd2", "properties": { "folder_icon": "\uf07b", "home_icon": "\b\b\uF108 home", "style": "agnoster_full", "folder_separator_icon": "/", "mapped_locations": { "D:\\Data\\code": "\b\b\uF121 D:/Data/code", "D:\\Data\\CTF": "\b\b\uF21B D:/Data/CTF", "D:\\Data\\\u6587\u6863": "\b\b\uF15C D:/Data/\u6587\u6863", "E:\\": "\b\b\uF0AD E:/" } }, "style": "diamond", "template": " \ue5ff {{ .Path }} ", "type": "path" }, { "foreground": "#F4AD35", "style": "plain", "template": "] ", "type": "text" }, { "foreground": "#17e528", "foreground_templates": [ "{{ if gt .Code 0 }}#f00000{{ end }}" ], "properties": { "always_enabled": true }, "style": "plain", "template": "\uD83E\uDD23\ud83d\udc49 \uf155 ", "type": "status" } ], "type": "prompt" } ], "console_title_template": "{{ .Folder }}", "transient_prompt": { "background": "transparent", "foreground": "#FEF5ED", "template": "-------------------------------------------------------------------\n> " }, "version": 2 }
|