88 lines
2.4 KiB
JSON
88 lines
2.4 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"transient_prompt": {
|
|
"template": "> "
|
|
},
|
|
"blocks": [
|
|
{
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"foreground": "#ffbb93",
|
|
"style": "plain",
|
|
"template": "{{ .UserName }}'s ",
|
|
"type": "session"
|
|
},
|
|
{
|
|
"foreground": "#a75d31",
|
|
"options": {
|
|
"style": "folder"
|
|
},
|
|
"style": "plain",
|
|
"template": "{{ .Path }}/ ",
|
|
"type": "path"
|
|
},
|
|
{
|
|
"foreground": "#f3e1da",
|
|
"options": {
|
|
"fetch_status": true
|
|
},
|
|
"style": "plain",
|
|
"template": "<#ffffff>on</> {{ .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 }} ",
|
|
"type": "git"
|
|
},
|
|
{
|
|
"foreground": "#ecc3b0",
|
|
"options": {
|
|
"fetch_version": true
|
|
},
|
|
"style": "plain",
|
|
"template": "<#ffffff>via</> \ue781 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ",
|
|
"type": "node"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
},
|
|
{
|
|
"alignment": "right",
|
|
"segments": [
|
|
{
|
|
"foreground": "#d5d096",
|
|
"style": "diamond",
|
|
"template": "RAM:{{ (div ((sub .PhysicalTotalMemory .PhysicalAvailableMemory)|float64) 1073741824.0) }}/{{ (div .PhysicalTotalMemory 1073741824.0) }}GB ",
|
|
"trailing_diamond": " ",
|
|
"type": "sysinfo"
|
|
},
|
|
{
|
|
"foreground": "#ffffff",
|
|
"leading_diamond": "\u250b",
|
|
"options": {
|
|
"style": "roundrock",
|
|
"threshold": 0
|
|
},
|
|
"style": "diamond",
|
|
"template": " {{ .FormattedMs }} ",
|
|
"type": "executiontime"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
},
|
|
{
|
|
"alignment": "left",
|
|
"newline": true,
|
|
"segments": [
|
|
{
|
|
"foreground": "#ffbb93",
|
|
"style": "plain",
|
|
"template": " ",
|
|
"type": "text",
|
|
"foreground_templates": ["{{ if gt .Code 0 }}#ffb8af{{ end }}"]
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
}
|
|
],
|
|
"final_space": true,
|
|
"version": 4
|
|
}
|