在把自带主题几乎都用了一次后,感觉还是自己魔改方便和适合我。
我把cert主题魔改了一下:
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
| { "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "blocks": [ { "alignment": "left", "segments": [ { "background": "green", "foreground": "#fff", "leading_diamond": "\ue0c7", "properties": { "style": "full" }, "style": "diamond", "template": " {{ .Path }} ", "trailing_diamond": "\ue0c6", "type": "path" }, { "background": "lightCyan", "foreground": "#fff", "leading_diamond": "\ue0c7", "properties": { "style": "roundrock", "threshold": 0 }, "style": "diamond", "template": " {{ .FormattedMs }} ", "trailing_diamond": "\ue0c6", "type": "executiontime" } ], "type": "prompt" } ], "final_space": true, "version": 2 }
|
在一个找到的目录放这个json然后把主题设置成需要的即可。
This article was written on July 23, 2022.