134 lines
3.6 KiB
JSON
134 lines
3.6 KiB
JSON
{
|
|
"palette": {
|
|
"white": "#F0F0EA",
|
|
"yellow": "#F9E2AF",
|
|
"orange": "#FAB387",
|
|
"red": "#F38BA8",
|
|
"green": "#94E2D5",
|
|
"blue": "#B4BEFE",
|
|
"pink": "#F5B2F7",
|
|
"violet": "#CBA6F7",
|
|
"grey": "#AAAABB",
|
|
"dark": "#777788",
|
|
"darker": "#444455"
|
|
},
|
|
"var": {
|
|
"sep": "<#ffffff>・</>"
|
|
},
|
|
"blocks": [
|
|
{
|
|
"alignment": "left",
|
|
"newline": false,
|
|
"segments": [
|
|
{
|
|
"foreground_templates": ["{{if .SSHSession }}p:violet{{else}}p:green{{ end }}"],
|
|
"style": "diamond",
|
|
"template": "<b>{{.HostName}}</b>{{.Var.sep}}{{.OS}}{{.Var.sep}}{{.Shell}}",
|
|
"type": "session"
|
|
},{
|
|
"foreground": "p:orange",
|
|
"style": "diamond",
|
|
"template": "{{.Var.sep}}{{.SHLVL}}/{{.PromptCount}}",
|
|
"type": "session"
|
|
},
|
|
{
|
|
"foreground_templates": ["{{if .Root }}p:red{{else}}p:green{{ end }}"],
|
|
"leading_diamond": "",
|
|
"style": "diamond",
|
|
"template": "{{.Var.sep}}{{.UserName}}",
|
|
"type": "session"
|
|
},
|
|
|
|
{
|
|
"foreground": "p:green",
|
|
"foreground_templates": ["{{ if gt .Code 0 }}p:red{{ end }}"],
|
|
"leading_diamond": "",
|
|
"style": "diamond",
|
|
"template": "{{.Var.sep}}{{.Code}}",
|
|
"type": "session"
|
|
},
|
|
{
|
|
"foreground": "p:yellow",
|
|
"properties": {
|
|
"branch_icon": "",
|
|
"fetch_stash_count": true,
|
|
"fetch_status": true,
|
|
"fetch_upstream_icon": true,
|
|
"fetch_worktree_count": true
|
|
},
|
|
"style": "diamond",
|
|
"template": "{{.Var.sep}}{{ .HEAD }} {{ .StashCount }}",
|
|
"trailing_diamond": "",
|
|
"type": "git"
|
|
},
|
|
{
|
|
"type": "go",
|
|
"style": "plain",
|
|
"foreground": "p:blue",
|
|
"template": "{{.Var.sep}}GO {{ .Full }} "
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
},
|
|
{
|
|
"alignment": "right",
|
|
"segments": [
|
|
{
|
|
"foreground": "p:blue",
|
|
"properties": {
|
|
"time_format": "Mon, 15:04"
|
|
},
|
|
"style": "diamond",
|
|
"template": "{{ .CurrentDate | date .Format }}{{.Var.sep}}",
|
|
"type": "time"
|
|
},
|
|
{
|
|
"foreground": "#94ffa2",
|
|
"style": "diamond",
|
|
"template": "{{ round .PhysicalPercentUsed .Precision }}%{{.Var.sep}}{{ round .Load15 .Precision }}",
|
|
"properties": {
|
|
"precision": 1
|
|
},
|
|
"type": "sysinfo"
|
|
},
|
|
{
|
|
"type": "battery",
|
|
"style": "plain",
|
|
"foreground": "#FFFFFF",
|
|
"background": "",
|
|
"foreground_templates": [
|
|
"{{ if lt .Percentage 20 }}p:red{{ end }}",
|
|
"{{ if lt .Percentage 50 }}p:yellow{{ end }}",
|
|
"p:blue"
|
|
],
|
|
"template": "{{if not .Error}}{{.Var.sep}}{{.Percentage}}%{{end}} "
|
|
}
|
|
|
|
],
|
|
"type": "prompt"
|
|
},
|
|
{
|
|
"alignment": "left",
|
|
"newline": true,
|
|
"segments": [
|
|
{
|
|
"properties": {
|
|
"always_enabled": true
|
|
},
|
|
"style": "plain",
|
|
"template": "{{.PWD}} <#66ffcc><b>></b>{{if .Root }}<b>></b>{{end}}</> ",
|
|
"type": "status"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
}
|
|
],
|
|
"console_title_template": "{{.UserName}}@{{.HostName}} {{.Shell}} in {{.PWD}}",
|
|
|
|
"transient_prompt": {
|
|
"background": "transparent",
|
|
"template": "<#cc99ff><b>></b></> "
|
|
},
|
|
"version": 3
|
|
}
|