Last active
June 8, 2022 15:57
-
-
Save cworld1/e26205ef9e261b7df57681038381b323 to your computer and use it in GitHub Desktop.
oh-my-posh 的主题代码。我给它取名叫 material-you。注意需要 nerd 字体支持。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"background": "#29315A", | |
"foreground": "#45F1C2", | |
"leading_diamond": "\ue0b6", | |
"style": "diamond", | |
"template": "\uf508 {{ .UserName }}", | |
"trailing_diamond": "\ue0b4 ", | |
"type": "session" | |
}, | |
{ | |
"foreground": "#45F1C2", | |
"style": "plain", | |
"template": "on ", | |
"type": "text" | |
}, | |
{ | |
"background": "#29315A", | |
"foreground": "#0CA0D8", | |
"style": "diamond", | |
"properties": { | |
"folder_separator_icon": "/", | |
"style": "full" | |
}, | |
"leading_diamond": "\ue0b6", | |
"template": "\uf07b {{ .Path }}", | |
"trailing_diamond": "\ue0b4 ", | |
"type": "path" | |
}, | |
{ | |
"foreground": "#14A5AE", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"fetch_stash_count": true, | |
"fetch_upstream_icon": true | |
}, | |
"style": "plain", | |
"template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", | |
"type": "git" | |
} | |
], | |
"type": "prompt" | |
}, | |
{ | |
"alignment": "right", | |
"segments": [ | |
{ | |
"foreground": "#858585", | |
"properties": { | |
"time_format": "15:04:05" | |
}, | |
"style": "plain", | |
"template": " {{ .CurrentDate | date .Format }} \uf017 ", | |
"type": "time" | |
} | |
], | |
"type": "prompt" | |
}, | |
{ | |
"alignment": "left", | |
"newline": true, | |
"segments": [ | |
{ | |
"foreground": "#CD4277", | |
"style": "plain", | |
"template": "# ", | |
"type": "text" | |
} | |
], | |
"type": "prompt" | |
} | |
], | |
"version": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
预览图:
启动指令: