2021-10-16 07:15:52 -07:00
|
|
|
{
|
2021-10-28 00:57:47 -07:00
|
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
|
|
"blocks": [
|
|
|
|
{
|
|
|
|
"alignment": "left",
|
|
|
|
"segments": [
|
|
|
|
{
|
|
|
|
"background": "#003543",
|
2022-02-03 01:22:57 -08:00
|
|
|
"foreground": "#fff",
|
|
|
|
"powerline_symbol": "\ue0b0",
|
2021-10-28 00:57:47 -07:00
|
|
|
"properties": {
|
2022-02-03 01:22:57 -08:00
|
|
|
"windows": "\ue62a "
|
|
|
|
},
|
|
|
|
"style": "powerline",
|
2022-03-27 01:12:47 -07:00
|
|
|
"template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}}",
|
2022-02-03 01:22:57 -08:00
|
|
|
"type": "os"
|
2021-10-28 00:57:47 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"background": "#0087D8",
|
2022-02-03 01:22:57 -08:00
|
|
|
"foreground": "#003544",
|
|
|
|
"powerline_symbol": "\ue0b0",
|
2021-10-28 00:57:47 -07:00
|
|
|
"properties": {
|
2022-02-03 01:22:57 -08:00
|
|
|
"folder_separator_icon": "/",
|
2022-03-27 01:12:47 -07:00
|
|
|
"style": "full"
|
2022-02-03 01:22:57 -08:00
|
|
|
},
|
|
|
|
"style": "powerline",
|
2022-03-27 01:12:47 -07:00
|
|
|
"template": " \ue5ff {{ .Path }} ",
|
2022-02-03 01:22:57 -08:00
|
|
|
"type": "path"
|
2021-10-28 00:57:47 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"background": "#d2ff5e",
|
2021-11-07 08:42:56 -08:00
|
|
|
"background_templates": [
|
2021-11-09 08:13:47 -08:00
|
|
|
"{{ if or (.Working.Changed) (.Staging.Changed) }}#ff9248{{ end }}",
|
|
|
|
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#f26d50{{ end }}",
|
|
|
|
"{{ if gt .Ahead 0 }}#89d1dc{{ end }}",
|
|
|
|
"{{ if gt .Behind 0 }}#f17c37{{ end }}"
|
2021-11-07 08:42:56 -08:00
|
|
|
],
|
2022-02-03 01:22:57 -08:00
|
|
|
"foreground": "#193549",
|
|
|
|
"powerline_symbol": "\ue0b0",
|
2021-10-28 00:57:47 -07:00
|
|
|
"properties": {
|
2021-11-07 08:42:56 -08:00
|
|
|
"fetch_stash_count": true,
|
2022-02-03 01:22:57 -08:00
|
|
|
"fetch_status": true,
|
2022-03-27 01:12:47 -07:00
|
|
|
"fetch_upstream_icon": true
|
2022-02-03 01:22:57 -08:00
|
|
|
},
|
|
|
|
"style": "powerline",
|
2023-05-09 02:08:45 -07:00
|
|
|
"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 }} ",
|
2022-02-03 01:22:57 -08:00
|
|
|
"type": "git"
|
2021-10-28 00:57:47 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"background": "#003543",
|
2022-02-03 01:22:57 -08:00
|
|
|
"foreground": "#fff",
|
|
|
|
"powerline_symbol": "\ue0b0",
|
|
|
|
"style": "powerline",
|
2023-05-09 02:08:45 -07:00
|
|
|
"template": "<#fff> \ue641 </>{{ .CurrentDate | date .Format }} ",
|
2022-02-03 01:22:57 -08:00
|
|
|
"type": "time"
|
2021-10-28 00:57:47 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"background": "#83769c",
|
2022-02-03 01:22:57 -08:00
|
|
|
"foreground": "#ffffff",
|
2021-10-28 00:57:47 -07:00
|
|
|
"properties": {
|
2022-03-27 01:12:47 -07:00
|
|
|
"always_enabled": true
|
2022-02-03 01:22:57 -08:00
|
|
|
},
|
|
|
|
"style": "diamond",
|
2023-05-09 02:08:45 -07:00
|
|
|
"template": " \ueba2 {{ .FormattedMs }}\u2800",
|
2022-02-03 01:22:57 -08:00
|
|
|
"trailing_diamond": "\ue0b4",
|
|
|
|
"type": "executiontime"
|
2021-10-28 00:57:47 -07:00
|
|
|
}
|
2022-02-03 01:22:57 -08:00
|
|
|
],
|
2022-07-03 01:54:52 -07:00
|
|
|
"type": "prompt"
|
2021-10-28 00:57:47 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"alignment": "left",
|
|
|
|
"newline": true,
|
|
|
|
"segments": [
|
|
|
|
{
|
|
|
|
"foreground": "#fff",
|
2022-02-03 01:22:57 -08:00
|
|
|
"style": "plain",
|
2022-03-27 01:12:47 -07:00
|
|
|
"template": " \u26a1 ",
|
2022-02-03 01:22:57 -08:00
|
|
|
"type": "root"
|
2021-10-28 00:57:47 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"foreground": "#f1184c",
|
2022-02-03 01:22:57 -08:00
|
|
|
"style": "plain",
|
2022-03-27 01:12:47 -07:00
|
|
|
"template": "🦄 ",
|
2022-02-03 01:22:57 -08:00
|
|
|
"type": "text"
|
2021-10-28 00:57:47 -07:00
|
|
|
}
|
2022-02-03 01:22:57 -08:00
|
|
|
],
|
|
|
|
"type": "prompt"
|
2021-10-28 00:57:47 -07:00
|
|
|
}
|
2022-02-03 01:22:57 -08:00
|
|
|
],
|
2022-02-03 19:29:57 -08:00
|
|
|
"console_title_template": "{{.UserName}}@{{.HostName}} in {{ .PWD }}",
|
2022-02-03 01:22:57 -08:00
|
|
|
"final_space": true,
|
2022-03-27 01:12:47 -07:00
|
|
|
"version": 2
|
2021-10-28 00:57:47 -07:00
|
|
|
}
|