My dotfiles
at main 279 lines 9.3 kB view raw
1{ 2 "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", 3 "blocks": [ 4 { 5 "type": "prompt", 6 "alignment": "left", 7 "segments": [ 8 { 9 "style": "diamond", 10 "leading_diamond": "\u256d\u2500\ue0b6", 11 "template": "\uf120 {{ .Name }} ", 12 "foreground": "#ffffff", 13 "background": "#0077c2", 14 "type": "shell" 15 }, 16 { 17 "style": "diamond", 18 "template": "<parentBackground>\ue0b0</> \uf292 ", 19 "foreground": "#FFFB38", 20 "background": "#ef5350", 21 "type": "root" 22 }, 23 { 24 "properties": { 25 "folder_icon": " \uf07b ", 26 "home_icon": "\ue617", 27 "style": "folder" 28 }, 29 "style": "powerline", 30 "template": " \uf07b\uea9c {{ .Path }} ", 31 "foreground": "#2d3436", 32 "powerline_symbol": "\ue0b0", 33 "background": "#FF9248", 34 "type": "path" 35 }, 36 { 37 "properties": { 38 "branch_icon": "\ue725 ", 39 "fetch_status": true, 40 "fetch_upstream_icon": true 41 }, 42 "style": "powerline", 43 "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#ef5350> \uf046 {{ .Staging.String }}</>{{ end }} ", 44 "foreground": "#011627", 45 "powerline_symbol": "\ue0b0", 46 "background": "#FFFB38", 47 "type": "git", 48 "background_templates": [ 49 "{{ if or (.Working.Changed) (.Staging.Changed) }}#ffeb95{{ end }}", 50 "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#c5e478{{ end }}", 51 "{{ if gt .Ahead 0 }}#C792EA{{ end }}", 52 "{{ if gt .Behind 0 }}#C792EA{{ end }}" 53 ] 54 }, 55 { 56 "properties": { 57 "style": "roundrock", 58 "threshold": 0 59 }, 60 "style": "diamond", 61 "trailing_diamond": "\ue0b4", 62 "template": " \ueba2 {{ .FormattedMs }}\u2800", 63 "foreground": "#ffffff", 64 "background": "#83769c", 65 "type": "executiontime" 66 } 67 ] 68 }, 69 { 70 "type": "prompt", 71 "alignment": "right", 72 "segments": [ 73 { 74 "properties": { 75 "fetch_package_manager": true, 76 "npm_icon": " <#cc3a3a>\ue5fa</> ", 77 "yarn_icon": " <#348cba>\ue6a7</>" 78 }, 79 "style": "diamond", 80 "leading_diamond": "\ue0b6", 81 "trailing_diamond": "\ue0b4 ", 82 "template": "\ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}", 83 "foreground": "#3C873A", 84 "background": "#303030", 85 "type": "node" 86 }, 87 { 88 "style": "diamond", 89 "leading_diamond": "\ue0b6", 90 "trailing_diamond": "\ue0b4 ", 91 "template": "\ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}", 92 "foreground": "#FFE873", 93 "background": "#306998", 94 "type": "python" 95 }, 96 { 97 "style": "diamond", 98 "leading_diamond": "\ue0b6", 99 "trailing_diamond": "\ue0b4 ", 100 "template": "\ue738 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", 101 "foreground": "#ffffff", 102 "background": "#0e8ac8", 103 "type": "java" 104 }, 105 { 106 "style": "diamond", 107 "leading_diamond": "\ue0b6", 108 "trailing_diamond": "\ue0b4 ", 109 "template": "\ue77f {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }}", 110 "foreground": "#0d6da8", 111 "background": "#0e0e0e", 112 "type": "dotnet" 113 }, 114 { 115 "style": "diamond", 116 "leading_diamond": "\ue0b6", 117 "trailing_diamond": "\ue0b4 ", 118 "template": "\ue626 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", 119 "foreground": "#06aad5", 120 "background": "#ffffff", 121 "type": "go" 122 }, 123 { 124 "style": "diamond", 125 "leading_diamond": "\ue0b6", 126 "trailing_diamond": "\ue0b4 ", 127 "template": "\ue7a8 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", 128 "foreground": "#925837", 129 "background": "#f3f0ec", 130 "type": "rust" 131 }, 132 { 133 "style": "diamond", 134 "leading_diamond": " \ue0b6", 135 "trailing_diamond": "\ue0b4 ", 136 "template": "\ue798 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", 137 "foreground": "#055b9c", 138 "background": "#e1e8e9", 139 "type": "dart" 140 }, 141 { 142 "style": "diamond", 143 "leading_diamond": " \ue0b6", 144 "trailing_diamond": "\ue0b4 ", 145 "template": "\ue753 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", 146 "foreground": "#ce092f", 147 "background": "#ffffff", 148 "type": "angular" 149 }, 150 { 151 "style": "diamond", 152 "leading_diamond": " \ue0b6", 153 "trailing_diamond": "\ue0b4 ", 154 "template": "{{ if .Error }}{{ .Error }}{{ else }}Nx {{ .Full }}{{ end }}", 155 "foreground": "#ffffff", 156 "background": "#1e293b", 157 "type": "nx" 158 }, 159 { 160 "style": "diamond", 161 "leading_diamond": " \ue0b6", 162 "trailing_diamond": "\ue0b4 ", 163 "template": "<#ca3c34>\ue624</> {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", 164 "foreground": "#359a25", 165 "background": "#945bb3", 166 "type": "julia" 167 }, 168 { 169 "style": "diamond", 170 "leading_diamond": "\ue0b6", 171 "trailing_diamond": "\ue0b4 ", 172 "template": "\ue791 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", 173 "foreground": "#9c1006", 174 "background": "#ffffff", 175 "type": "ruby" 176 }, 177 { 178 "style": "diamond", 179 "leading_diamond": "\ue0b6", 180 "trailing_diamond": "\ue0b4 ", 181 "template": "\uf104<#f5bf45>\uf0e7</>\uf105 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", 182 "foreground": "#5398c2", 183 "background": "#ffffff", 184 "type": "azfunc" 185 }, 186 { 187 "style": "diamond", 188 "leading_diamond": "\ue0b6", 189 "trailing_diamond": "\ue0b4 ", 190 "template": "\ue7ad {{.Profile}}{{if .Region}}@{{.Region}}{{end}}", 191 "foreground": "#faa029", 192 "background": "#565656", 193 "type": "aws" 194 }, 195 { 196 "style": "diamond", 197 "leading_diamond": "\ue0b6", 198 "trailing_diamond": "\ue0b4", 199 "template": "\uf308 {{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}}", 200 "foreground": "#ffffff", 201 "background": "#316ce4", 202 "type": "kubectl" 203 }, 204 { 205 "properties": { 206 "linux": "\ue712", 207 "macos": "\ue711", 208 "windows": "\ue70f" 209 }, 210 "style": "diamond", 211 "leading_diamond": "\ue0b6", 212 "trailing_diamond": "<transparent,background>\ue0b2</>", 213 "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ", 214 "foreground": "#222222", 215 "background": "#b2bec3", 216 "type": "os" 217 }, 218 { 219 "properties": { 220 "charged_icon": "\uf240 ", 221 "charging_icon": "\uf1e6 ", 222 "discharging_icon": "\ue234 " 223 }, 224 "style": "powerline", 225 "template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}\uf295 ", 226 "foreground": "#262626", 227 "powerline_symbol": "\ue0b2", 228 "background": "#f36943", 229 "type": "battery", 230 "background_templates": [ 231 "{{if eq \"Charging\" .State.String}}#b8e994{{end}}", 232 "{{if eq \"Discharging\" .State.String}}#fff34e{{end}}", 233 "{{if eq \"Full\" .State.String}}#33DD2D{{end}}" 234 ], 235 "invert_powerline": true 236 }, 237 { 238 "properties": { 239 "time_format": "_2,15:04" 240 }, 241 "style": "diamond", 242 "leading_diamond": "\ue0b2", 243 "trailing_diamond": "\ue0b4", 244 "template": " \uf073 {{ .CurrentDate | date .Format }} ", 245 "foreground": "#ffffff", 246 "background": "#40c4ff", 247 "type": "time", 248 "invert_powerline": true 249 } 250 ] 251 }, 252 { 253 "type": "prompt", 254 "alignment": "left", 255 "segments": [ 256 { 257 "style": "plain", 258 "template": "\u2570\u2500", 259 "foreground": "#21c7c7", 260 "type": "text" 261 }, 262 { 263 "properties": { 264 "always_enabled": true 265 }, 266 "style": "plain", 267 "template": "\ue285\ueab6 ", 268 "foreground": "#e0f8ff", 269 "type": "status", 270 "foreground_templates": [ 271 "{{ if gt .Code 0 }}#ef5350{{ end }}" 272 ] 273 } 274 ], 275 "newline": true 276 } 277 ], 278 "version": 3 279}