mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -08:00
96 lines
2.5 KiB
JSON
96 lines
2.5 KiB
JSON
|
{
|
||
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
||
|
"blocks": [
|
||
|
{
|
||
|
"alignment": "left",
|
||
|
"segments": [
|
||
|
{
|
||
|
"foreground": "lightBlue",
|
||
|
"foreground_templates": [
|
||
|
"{{ if .Root }}red{{ end }}"
|
||
|
],
|
||
|
"properties": {
|
||
|
"display_host": true,
|
||
|
"template": "<green>\u250c\u2500\u2500(</>{{ if .Root }}root💀{{ else }}{{ .UserName }}@{{ end }}{{ .HostName }}<green>)</>"
|
||
|
},
|
||
|
"style": "plain",
|
||
|
"type": "session"
|
||
|
},
|
||
|
{
|
||
|
"foreground": "yellow",
|
||
|
"properties": {
|
||
|
"fetch_version": false,
|
||
|
"fetch_virtual_env": true,
|
||
|
"template": "<green>-[</>\ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }}{{ end }}{{ .Full }}{{ end }}<green>]</>"
|
||
|
},
|
||
|
"style": "plain",
|
||
|
"type": "python"
|
||
|
},
|
||
|
{
|
||
|
"foreground": "lightWhite",
|
||
|
"properties": {
|
||
|
"folder_separator_icon": "<#c0c0c0>/</>",
|
||
|
"style": "full",
|
||
|
"template": "<green>-[</>{{ .Path }}<green>]</>"
|
||
|
},
|
||
|
"style": "plain",
|
||
|
"type": "path"
|
||
|
},
|
||
|
{
|
||
|
"foreground": "white",
|
||
|
"properties": {
|
||
|
"template": "<green>-[</>{{ .HEAD }}<green>]</>"
|
||
|
},
|
||
|
"style": "plain",
|
||
|
"type": "git"
|
||
|
}
|
||
|
],
|
||
|
"type": "prompt"
|
||
|
},
|
||
|
{
|
||
|
"alignment": "right",
|
||
|
"segments": [
|
||
|
{
|
||
|
"foreground": "white",
|
||
|
"properties": {
|
||
|
"always_enabled": true,
|
||
|
"style": "round",
|
||
|
"template": " {{ .FormattedMs }} "
|
||
|
},
|
||
|
"style": "plain",
|
||
|
"type": "executiontime"
|
||
|
},
|
||
|
{
|
||
|
"foreground": "green",
|
||
|
"foreground_templates": [
|
||
|
"{{ if gt .Code 0 }}red{{ end }}"
|
||
|
],
|
||
|
"properties": {
|
||
|
"always_enabled": true,
|
||
|
"template": " {{ if gt .Code 0 }}\u2a2f{{else}}\u2713{{ end }} "
|
||
|
},
|
||
|
"style": "plain",
|
||
|
"type": "exit"
|
||
|
}
|
||
|
],
|
||
|
"type": "prompt"
|
||
|
},
|
||
|
{
|
||
|
"alignment": "left",
|
||
|
"newline": true,
|
||
|
"segments": [
|
||
|
{
|
||
|
"foreground": "lightBlue",
|
||
|
"properties": {
|
||
|
"template": "<green>\u2514\u2500</>{{ if .Root }}<red>#</>{{ else }}${{ end }} "
|
||
|
},
|
||
|
"style": "plain",
|
||
|
"type": "text"
|
||
|
}
|
||
|
],
|
||
|
"type": "prompt"
|
||
|
}
|
||
|
],
|
||
|
"version": 1
|
||
|
}
|