155 lines
4.0 KiB
JSON
155 lines
4.0 KiB
JSON
|
{
|
||
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
||
|
"blocks": [
|
||
|
{
|
||
|
"alignment": "left",
|
||
|
"segments": [
|
||
|
{
|
||
|
"foreground": "#ffee58",
|
||
|
"style": "plain",
|
||
|
"template": " \uf0e7 ",
|
||
|
"type": "root"
|
||
|
},
|
||
|
{
|
||
|
"foreground": "#06884b",
|
||
|
"foreground_templates": [
|
||
|
"{{ if gt .Code 0 }}#e61010{{ end }}"
|
||
|
],
|
||
|
"properties": {
|
||
|
"always_enabled": true
|
||
|
},
|
||
|
"style": "powerline",
|
||
|
"template": " {{ if gt .Code 0 }}\u2717{{ else }}\u2714{{ end }} ",
|
||
|
"type": "exit"
|
||
|
},
|
||
|
{
|
||
|
"foreground": "#ffffff",
|
||
|
"properties": {
|
||
|
"display_host": false
|
||
|
},
|
||
|
"style": "plain",
|
||
|
"template": " {{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }}",
|
||
|
"type": "session"
|
||
|
}
|
||
|
],
|
||
|
"type": "prompt"
|
||
|
},
|
||
|
{
|
||
|
"alignment": "left",
|
||
|
"segments": [
|
||
|
{
|
||
|
"foreground": "#fff000",
|
||
|
"properties": {
|
||
|
"prefix": " \ufcb5 ",
|
||
|
"var_name": "__SHELL_INFORMATION_POSH_258__"
|
||
|
},
|
||
|
"style": "powerline",
|
||
|
"type": "envvar"
|
||
|
},
|
||
|
{
|
||
|
"foreground": "#b600ff",
|
||
|
"style": "powerline",
|
||
|
"template": " \ufcd1 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
|
||
|
"type": "go"
|
||
|
},
|
||
|
{
|
||
|
"foreground": "#b600ff",
|
||
|
"style": "powerline",
|
||
|
"template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ",
|
||
|
"type": "node"
|
||
|
},
|
||
|
{
|
||
|
"background": "#b600ff",
|
||
|
"foreground": "#ffffff",
|
||
|
"powerline_symbol": "\ue0b0",
|
||
|
"properties": {
|
||
|
"display_mode": "context",
|
||
|
"home_enabled": true
|
||
|
},
|
||
|
"style": "powerline",
|
||
|
"template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ",
|
||
|
"type": "python"
|
||
|
}
|
||
|
],
|
||
|
"type": "prompt"
|
||
|
},
|
||
|
{
|
||
|
"alignment": "left",
|
||
|
"segments": [
|
||
|
{
|
||
|
"foreground": "#8e24aa",
|
||
|
"style": "plain",
|
||
|
"template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ",
|
||
|
"type": "os"
|
||
|
},
|
||
|
{
|
||
|
"background": "#0037da",
|
||
|
"foreground": "#ffffff",
|
||
|
"powerline_symbol": "\ue0b0",
|
||
|
"properties": {
|
||
|
"folder_separator_icon": " \ue0b1 ",
|
||
|
"home_icon": "\uf7db",
|
||
|
"style": "letter"
|
||
|
},
|
||
|
"style": "powerline",
|
||
|
"template": " {{ .Path }} ",
|
||
|
"type": "path"
|
||
|
},
|
||
|
{
|
||
|
"foreground": "#193549",
|
||
|
"powerline_symbol": "\ue0b0",
|
||
|
"style": "powerline",
|
||
|
"template": " {{ .Status }} ",
|
||
|
"type": "poshgit"
|
||
|
}
|
||
|
],
|
||
|
"type": "prompt"
|
||
|
},
|
||
|
{
|
||
|
"alignment": "right",
|
||
|
"segments": [
|
||
|
{
|
||
|
"foreground": "#8454bb",
|
||
|
"powerline_symbol": "\ue0b0",
|
||
|
"properties": {
|
||
|
"style": "austin",
|
||
|
"threshold": 500
|
||
|
},
|
||
|
"style": "plain",
|
||
|
"template": " <#fefefe>\ufbab</> {{ .FormattedMs }} ",
|
||
|
"type": "executiontime"
|
||
|
},
|
||
|
{
|
||
|
"foreground": "#007ACC",
|
||
|
"properties": {
|
||
|
"time_format": "[15:04:05]"
|
||
|
},
|
||
|
"style": "plain",
|
||
|
"template": " {{ .CurrentDate | date .Format }} ",
|
||
|
"type": "time"
|
||
|
}
|
||
|
],
|
||
|
"type": "rprompt"
|
||
|
},
|
||
|
{
|
||
|
"alignment": "left",
|
||
|
"newline": true,
|
||
|
"segments": [
|
||
|
{
|
||
|
"foreground": "#0037da",
|
||
|
"style": "powerline",
|
||
|
"template": " \u276f ",
|
||
|
"type": "text"
|
||
|
}
|
||
|
],
|
||
|
"type": "prompt"
|
||
|
}
|
||
|
],
|
||
|
"final_space": true,
|
||
|
"transient_prompt": {
|
||
|
"background": "transparent",
|
||
|
"foreground": "#8800dd"
|
||
|
},
|
||
|
"version": 2
|
||
|
}
|