mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-29 04:49:39 -08:00
137 lines
4 KiB
JSON
137 lines
4 KiB
JSON
{
|
|
"$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": "\ue62a "
|
|
},
|
|
"style": "diamond",
|
|
"template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}}",
|
|
"trailing_diamond": "<transparent,#FEF5ED>\ue0b2</>",
|
|
"type": "os"
|
|
},
|
|
{
|
|
"background": "#FEF5ED",
|
|
"foreground": "#011627",
|
|
"leading_diamond": "\ue0b2",
|
|
"style": "diamond",
|
|
"template": "\uf489 {{ .Name }}",
|
|
"trailing_diamond": "<transparent,#FEF5ED>\ue0b2</>",
|
|
"type": "shell"
|
|
},
|
|
{
|
|
"background": "#516BEB",
|
|
"foreground": "#ffffff",
|
|
"leading_diamond": "\ue0b2",
|
|
"style": "diamond",
|
|
"template": "\ue266 MEM: {{ round .PhysicalPercentUsed .Precision }}% | {{ (div ((sub .PhysicalTotalMemory .PhysicalAvailableMemory)|float64) 1073741824.0) }}/{{ (div .PhysicalTotalMemory 1073741824.0) }}GB \ue266 ",
|
|
"trailing_diamond": "<transparent,#516BEB>\ue0b2</>",
|
|
"type": "sysinfo"
|
|
},
|
|
{
|
|
"background": "#575656",
|
|
"foreground": "#d6deeb",
|
|
"leading_diamond": "\ue0b2",
|
|
"properties": {
|
|
"style": "roundrock",
|
|
"threshold": 0
|
|
},
|
|
"style": "diamond",
|
|
"template": " {{ .FormattedMs }} ",
|
|
"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,
|
|
"fetch_worktree_count": true
|
|
},
|
|
"style": "diamond",
|
|
"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 }} ",
|
|
"trailing_diamond": "\ue0b0",
|
|
"type": "git"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
},
|
|
{
|
|
"alignment": "left",
|
|
"newline": true,
|
|
"segments": [
|
|
{
|
|
"style": "plain",
|
|
"template": "\u256d\u2500",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"properties": {
|
|
"time_format": "15:04"
|
|
},
|
|
"style": "plain",
|
|
"template": " \u2665 {{ .CurrentDate | date .Format }} |",
|
|
"type": "time"
|
|
},
|
|
{
|
|
"style": "plain",
|
|
"template": " \uf292 ",
|
|
"type": "root"
|
|
},
|
|
{
|
|
"properties": {
|
|
"folder_icon": "\uf07b ",
|
|
"folder_separator_icon": " \uf061 ",
|
|
"home_icon": "\ueb06 "
|
|
},
|
|
"style": "plain",
|
|
"template": " {{ .Path }} ",
|
|
"type": "path"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
},
|
|
{
|
|
"alignment": "left",
|
|
"newline": true,
|
|
"segments": [
|
|
{
|
|
"properties": {
|
|
"always_enabled": true
|
|
},
|
|
"style": "plain",
|
|
"template": "\u2570\u2500 ",
|
|
"type": "status"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
}
|
|
],
|
|
"console_title_template": "{{ .Folder }}",
|
|
"transient_prompt": {
|
|
"background": "transparent",
|
|
"foreground": "#FEF5ED",
|
|
"template": "\ue285 "
|
|
},
|
|
"version": 2
|
|
}
|