|
| 1 | +{ |
| 2 | + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", |
| 3 | + "version": 3, |
| 4 | + "palettes": { |
| 5 | + "template": "{{ if .Root }}admin{{ else }}user{{ end }}", |
| 6 | + "list": { |
| 7 | + "admin": { |
| 8 | + "promptColor": "#ffffff", |
| 9 | + "userColor": "#ff6200", |
| 10 | + "executionTimeColor": "lightYellow" |
| 11 | + }, |
| 12 | + "user": { |
| 13 | + "promptColor": "#0CA0D8", |
| 14 | + "userColor": "#45F1C2", |
| 15 | + "executionTimeColor": "lightYellow" |
| 16 | + } |
| 17 | + } |
| 18 | + }, |
| 19 | + "blocks": [ |
| 20 | + { |
| 21 | + "type": "prompt", |
| 22 | + "alignment": "left", |
| 23 | + "segments": [ |
| 24 | + { |
| 25 | + "type": "session", |
| 26 | + "template": "\ueb99 ", |
| 27 | + "style": "plain", |
| 28 | + "foreground": "p:userColor" |
| 29 | + }, |
| 30 | + { |
| 31 | + "type": "executiontime", |
| 32 | + "template": " {{ .FormattedMs }} ", |
| 33 | + "style": "plain", |
| 34 | + "foreground": "p:executionTimeColor", |
| 35 | + "properties": { |
| 36 | + "threshold": 500, |
| 37 | + "style": "round", |
| 38 | + "always_enabled": true |
| 39 | + } |
| 40 | + }, |
| 41 | + { |
| 42 | + "type": "path", |
| 43 | + "template": "\uf07b {{ .Path }} ", |
| 44 | + "style": "plain", |
| 45 | + "foreground": "#0CA0D8", |
| 46 | + "properties": { |
| 47 | + "cache_duration": "none", |
| 48 | + "folder_separator_icon": "/", |
| 49 | + "style": "full" |
| 50 | + } |
| 51 | + }, |
| 52 | + { |
| 53 | + "type": "git", |
| 54 | + "template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }} ", |
| 55 | + "style": "plain", |
| 56 | + "powerline_symbol": "\ue0b0", |
| 57 | + "foreground": "#ffffff", |
| 58 | + "properties": { |
| 59 | + "cache_duration": "none", |
| 60 | + "fetch_stash_count": true, |
| 61 | + "fetch_upstream_icon": true |
| 62 | + } |
| 63 | + } |
| 64 | + ] |
| 65 | + }, |
| 66 | + { |
| 67 | + "type": "prompt", |
| 68 | + "alignment": "left", |
| 69 | + "newline": true, |
| 70 | + "segments": [ |
| 71 | + { |
| 72 | + "template": "{{if .Root}}# {{ else }}> {{ end }}", |
| 73 | + "type": "root", |
| 74 | + "style": "plain", |
| 75 | + "foreground": "p:promptColor" |
| 76 | + }, |
| 77 | + { |
| 78 | + "type": "text", |
| 79 | + "template": "{{if .Root}}{{ else }}> {{ end }}", |
| 80 | + "style": "plain", |
| 81 | + "foreground": "p:promptColor" |
| 82 | + } |
| 83 | + ] |
| 84 | + } |
| 85 | + ], |
| 86 | + "transient_prompt": { |
| 87 | + "template": ">> ", |
| 88 | + "foreground": "yellow" |
| 89 | + } |
| 90 | +} |
0 commit comments