2021-12-23 06:11:22 -08:00
|
|
|
{
|
2022-02-03 01:22:57 -08:00
|
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
|
|
"blocks": [
|
|
|
|
{
|
|
|
|
"alignment": "left",
|
|
|
|
"newline": true,
|
|
|
|
"segments": [
|
|
|
|
{
|
|
|
|
"background": "#FEF5ED",
|
|
|
|
"foreground": "#011627",
|
|
|
|
"leading_diamond": "\ue0b2",
|
|
|
|
"properties": {
|
|
|
|
"macos": "\uf179 ",
|
|
|
|
"ubuntu": "\uf31b ",
|
|
|
|
"windows": "\uf871 "
|
|
|
|
},
|
|
|
|
"style": "diamond",
|
2022-03-27 01:12:47 -07:00
|
|
|
"template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}}",
|
2022-02-03 01:22:57 -08:00
|
|
|
"trailing_diamond": "<transparent,#FEF5ED>\ue0b2</>",
|
|
|
|
"type": "os"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"background": "#FEF5ED",
|
|
|
|
"foreground": "#011627",
|
|
|
|
"leading_diamond": "\ue0b2",
|
|
|
|
"style": "diamond",
|
2022-03-27 01:12:47 -07:00
|
|
|
"template": "\uf489 {{ .Name }}",
|
2022-02-03 01:22:57 -08:00
|
|
|
"trailing_diamond": "<transparent,#FEF5ED>\ue0b2</>",
|
|
|
|
"type": "shell"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"background": "#516BEB",
|
|
|
|
"foreground": "#ffffff",
|
|
|
|
"leading_diamond": "\ue0b2",
|
|
|
|
"style": "diamond",
|
2022-03-27 01:12:47 -07:00
|
|
|
"template": "\uf85a CPU: {{ round .PhysicalPercentUsed .Precision }}% | ",
|
2022-02-03 01:22:57 -08:00
|
|
|
"type": "sysinfo"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"background": "#516BEB",
|
|
|
|
"foreground": "#ffffff",
|
|
|
|
"style": "diamond",
|
2022-03-27 01:12:47 -07:00
|
|
|
"template": "MEM: {{ (div ((sub .PhysicalTotalMemory .PhysicalFreeMemory)|float64) 1000000000.0) }}/{{ (div .PhysicalTotalMemory 1000000000.0) }}GB \uf85a ",
|
2022-02-03 01:22:57 -08:00
|
|
|
"trailing_diamond": "<transparent,#516BEB>\ue0b2</>",
|
|
|
|
"type": "sysinfo"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"background": "#575656",
|
|
|
|
"foreground": "#d6deeb",
|
|
|
|
"leading_diamond": "\ue0b2",
|
|
|
|
"properties": {
|
|
|
|
"style": "roundrock",
|
|
|
|
"threshold": 0
|
|
|
|
},
|
|
|
|
"style": "diamond",
|
2022-03-27 01:12:47 -07:00
|
|
|
"template": " {{ .FormattedMs }} ",
|
2022-02-03 01:22:57 -08:00
|
|
|
"trailing_diamond": "\ue0b0",
|
|
|
|
"type": "executiontime"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"type": "prompt"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"alignment": "right",
|
|
|
|
"segments": [
|
|
|
|
{
|
|
|
|
"background": "#17D7A0",
|
|
|
|
"foreground": "#011627",
|
|
|
|
"leading_diamond": "\ue0b2",
|
|
|
|
"properties": {
|
|
|
|
"branch_icon": "\ue725 ",
|
|
|
|
"fetch_stash_count": true,
|
|
|
|
"fetch_status": true,
|
|
|
|
"fetch_upstream_icon": true,
|
2022-03-27 01:12:47 -07:00
|
|
|
"fetch_worktree_count": true
|
2022-02-03 01:22:57 -08:00
|
|
|
},
|
|
|
|
"style": "diamond",
|
2022-03-27 01:12:47 -07:00
|
|
|
"template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ 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 }} \uf692 {{ .StashCount }}{{ end }} ",
|
2022-02-03 01:22:57 -08:00
|
|
|
"trailing_diamond": "\ue0b0",
|
|
|
|
"type": "git"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"type": "prompt"
|
2021-12-23 06:11:22 -08:00
|
|
|
},
|
2022-02-03 01:22:57 -08:00
|
|
|
{
|
|
|
|
"alignment": "left",
|
|
|
|
"newline": true,
|
|
|
|
"segments": [
|
2021-12-23 06:11:22 -08:00
|
|
|
{
|
2022-02-03 01:22:57 -08:00
|
|
|
"style": "plain",
|
2022-03-27 01:12:47 -07:00
|
|
|
"template": "\u256d\u2500",
|
2022-02-03 01:22:57 -08:00
|
|
|
"type": "text"
|
2021-12-23 06:11:22 -08:00
|
|
|
},
|
|
|
|
{
|
2022-02-03 01:22:57 -08:00
|
|
|
"properties": {
|
|
|
|
"time_format": "15:04"
|
|
|
|
},
|
|
|
|
"style": "plain",
|
2022-03-27 01:12:47 -07:00
|
|
|
"template": " \u2665 {{ .CurrentDate | date .Format }} |",
|
2022-02-03 01:22:57 -08:00
|
|
|
"type": "time"
|
2021-12-23 06:11:22 -08:00
|
|
|
},
|
|
|
|
{
|
2022-02-03 01:22:57 -08:00
|
|
|
"style": "plain",
|
2022-03-27 01:12:47 -07:00
|
|
|
"template": " \uf292 ",
|
2022-02-03 01:22:57 -08:00
|
|
|
"type": "root"
|
2021-12-23 06:11:22 -08:00
|
|
|
},
|
|
|
|
{
|
2022-02-03 01:22:57 -08:00
|
|
|
"properties": {
|
|
|
|
"folder_icon": "\uf07b ",
|
|
|
|
"folder_separator_icon": " \uf554 ",
|
2022-03-27 01:12:47 -07:00
|
|
|
"home_icon": "\uf7db "
|
2022-02-03 01:22:57 -08:00
|
|
|
},
|
|
|
|
"style": "plain",
|
2022-03-27 01:12:47 -07:00
|
|
|
"template": " {{ .Path }} ",
|
2022-02-03 01:22:57 -08:00
|
|
|
"type": "path"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"type": "prompt"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"alignment": "left",
|
|
|
|
"newline": true,
|
|
|
|
"segments": [
|
|
|
|
{
|
|
|
|
"properties": {
|
2022-03-27 01:12:47 -07:00
|
|
|
"always_enabled": true
|
2022-02-03 01:22:57 -08:00
|
|
|
},
|
|
|
|
"style": "plain",
|
2022-03-27 01:12:47 -07:00
|
|
|
"template": "\u2570\u2500 ",
|
2022-02-03 01:22:57 -08:00
|
|
|
"type": "exit"
|
2021-12-23 06:11:22 -08:00
|
|
|
}
|
2022-02-03 01:22:57 -08:00
|
|
|
],
|
|
|
|
"type": "prompt"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"console_title_template": "{{ .Folder }}",
|
|
|
|
"transient_prompt": {
|
|
|
|
"background": "transparent",
|
|
|
|
"foreground": "#FEF5ED",
|
|
|
|
"template": "\ue285 "
|
|
|
|
},
|
2022-03-27 01:12:47 -07:00
|
|
|
"version": 2
|
2022-01-22 10:46:56 -08:00
|
|
|
}
|