90 lines
2.4 KiB
JSON
90 lines
2.4 KiB
JSON
{
|
||
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
||
"blocks": [
|
||
{
|
||
"alignment": "left",
|
||
"segments": [
|
||
{
|
||
"foreground": "#ef934d",
|
||
"style": "plain",
|
||
"template": "{{ .UserName }}@{{ .HostName }} ",
|
||
"type": "session"
|
||
},
|
||
{
|
||
"foreground": "#f4decd",
|
||
"style": "plain",
|
||
"properties": {
|
||
"style": "folder"
|
||
},
|
||
"template": "{{ .Path }} ",
|
||
"type": "path"
|
||
},
|
||
{
|
||
"foreground": "#6a6a6a",
|
||
"style": "plain",
|
||
"properties": {
|
||
"branch_icon": " ",
|
||
"fetch_status": true,
|
||
"fetch_upstream_icon": true
|
||
},
|
||
"template": "{{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}<#ef934d> *</>{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#7ec97e> +</>{{ end }}{{ if gt .StashCount 0 }}<#6a6a6a> {{ .StashCount }}</>{{ end }} ",
|
||
"type": "git"
|
||
},
|
||
{
|
||
"foreground": "#6a6a6a",
|
||
"style": "plain",
|
||
"properties": {
|
||
"style": "austin",
|
||
"threshold": 500
|
||
},
|
||
"template": "{{ .FormattedMs }} ",
|
||
"type": "executiontime"
|
||
}
|
||
],
|
||
"type": "prompt"
|
||
},
|
||
{
|
||
"alignment": "right",
|
||
"segments": [
|
||
{
|
||
"foreground": "#6a6a6a",
|
||
"style": "plain",
|
||
"properties": {
|
||
"time_format": "01/02 15:04"
|
||
},
|
||
"template": "{{ .CurrentDate | date .Format }}",
|
||
"type": "time"
|
||
}
|
||
],
|
||
"type": "prompt"
|
||
},
|
||
{
|
||
"alignment": "left",
|
||
"newline": true,
|
||
"segments": [
|
||
{
|
||
"foreground": "#ef934d",
|
||
"foreground_templates": [
|
||
"{{ if gt .Code 0 }}#f16e65{{ end }}"
|
||
],
|
||
"style": "plain",
|
||
"properties": {
|
||
"always_enabled": true
|
||
},
|
||
"template": "❯ ",
|
||
"type": "status"
|
||
}
|
||
],
|
||
"type": "prompt"
|
||
}
|
||
],
|
||
"transient_prompt": {
|
||
"foreground": "#ef934d",
|
||
"foreground_templates": [
|
||
"{{ if gt .Code 0 }}#f16e65{{ end }}"
|
||
],
|
||
"template": "❯ "
|
||
},
|
||
"console_title_template": "{{ .Folder }}",
|
||
"version": 3
|
||
}
|