2021-06-21 09:43:27 -07:00
|
|
|
{
|
2021-11-07 08:42:56 -08:00
|
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
|
|
"blocks": [
|
|
|
|
{
|
|
|
|
"alignment": "left",
|
|
|
|
"segments": [
|
2021-06-21 09:43:27 -07:00
|
|
|
{
|
2021-11-07 08:42:56 -08:00
|
|
|
"foreground": "cyan",
|
2022-02-03 01:22:57 -08:00
|
|
|
"style": "powerline",
|
2022-03-27 01:12:47 -07:00
|
|
|
"template": "{{ .Icon }}",
|
2022-02-03 01:22:57 -08:00
|
|
|
"type": "os"
|
2021-06-21 09:43:27 -07:00
|
|
|
},
|
|
|
|
{
|
2021-11-07 08:42:56 -08:00
|
|
|
"foreground": "cyan",
|
|
|
|
"properties": {
|
2022-03-27 01:12:47 -07:00
|
|
|
"style": "full"
|
2022-02-03 01:22:57 -08:00
|
|
|
},
|
|
|
|
"style": "plain",
|
2022-03-27 01:12:47 -07:00
|
|
|
"template": " {{ .Path }} ",
|
2022-02-03 01:22:57 -08:00
|
|
|
"type": "path"
|
2021-06-21 09:43:27 -07:00
|
|
|
},
|
|
|
|
{
|
2021-11-07 08:42:56 -08:00
|
|
|
"foreground": "lightYellow",
|
2022-02-03 01:22:57 -08:00
|
|
|
"style": "plain",
|
2022-03-27 01:12:47 -07:00
|
|
|
"template": ":: <lightBlue>git(</>{{ .HEAD }}<lightBlue>)</>",
|
2022-02-03 01:22:57 -08:00
|
|
|
"type": "git"
|
2021-06-21 09:43:27 -07:00
|
|
|
}
|
2022-02-03 01:22:57 -08:00
|
|
|
],
|
|
|
|
"type": "prompt"
|
2021-11-07 08:42:56 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"alignment": "right",
|
|
|
|
"segments": [
|
|
|
|
{
|
|
|
|
"foreground": "#68a063",
|
|
|
|
"properties": {
|
|
|
|
"display_mode": "files",
|
2022-02-03 01:22:57 -08:00
|
|
|
"fetch_package_manager": true,
|
|
|
|
"fetch_version": true,
|
|
|
|
"npm_icon": "/npm",
|
|
|
|
"yarn_icon": "/yarn"
|
|
|
|
},
|
|
|
|
"style": "plain",
|
2022-03-27 01:12:47 -07:00
|
|
|
"template": " {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}",
|
2022-02-03 01:22:57 -08:00
|
|
|
"type": "node"
|
2021-11-07 08:42:56 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"foreground": "#4063D8",
|
|
|
|
"properties": {
|
|
|
|
"display_mode": "files",
|
2022-03-27 01:12:47 -07:00
|
|
|
"fetch_version": true
|
2022-02-03 01:22:57 -08:00
|
|
|
},
|
|
|
|
"style": "plain",
|
2022-03-27 01:12:47 -07:00
|
|
|
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
|
2022-02-03 01:22:57 -08:00
|
|
|
"type": "crystal"
|
2021-11-07 08:42:56 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"foreground": "#DE3F24",
|
|
|
|
"properties": {
|
2022-02-03 01:22:57 -08:00
|
|
|
"display_mode": "files",
|
2022-03-27 01:12:47 -07:00
|
|
|
"fetch_version": true
|
2022-02-03 01:22:57 -08:00
|
|
|
},
|
|
|
|
"style": "plain",
|
2022-03-27 01:12:47 -07:00
|
|
|
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
|
2022-02-03 01:22:57 -08:00
|
|
|
"type": "ruby"
|
2021-11-07 08:42:56 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"foreground": "#FED142",
|
|
|
|
"properties": {
|
2021-12-04 02:56:55 -08:00
|
|
|
"display_mode": "context",
|
2022-03-27 01:12:47 -07:00
|
|
|
"fetch_virtual_env": false
|
2022-02-03 01:22:57 -08:00
|
|
|
},
|
|
|
|
"style": "plain",
|
2022-03-27 01:12:47 -07:00
|
|
|
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
|
2022-02-03 01:22:57 -08:00
|
|
|
"type": "python"
|
2021-11-07 08:42:56 -08:00
|
|
|
},
|
|
|
|
{
|
2022-02-03 01:22:57 -08:00
|
|
|
"foreground": "lightGreen",
|
2021-11-07 08:42:56 -08:00
|
|
|
"style": "plain",
|
2022-03-27 01:12:47 -07:00
|
|
|
"template": " {{ .CurrentDate | date .Format }} ",
|
2022-02-03 01:22:57 -08:00
|
|
|
"type": "time"
|
2021-11-07 08:42:56 -08:00
|
|
|
}
|
2022-02-03 01:22:57 -08:00
|
|
|
],
|
|
|
|
"type": "prompt"
|
2021-11-07 08:42:56 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"alignment": "left",
|
|
|
|
"newline": true,
|
|
|
|
"segments": [
|
|
|
|
{
|
|
|
|
"foreground": "lightGreen",
|
2022-02-03 01:22:57 -08:00
|
|
|
"foreground_templates": [
|
|
|
|
"{{ if gt .Code 0 }}red{{ end }}"
|
|
|
|
],
|
2021-11-07 08:42:56 -08:00
|
|
|
"properties": {
|
2022-03-27 01:12:47 -07:00
|
|
|
"always_enabled": true
|
2022-02-03 01:22:57 -08:00
|
|
|
},
|
|
|
|
"style": "powerline",
|
2022-03-27 01:12:47 -07:00
|
|
|
"template": "\u279c ",
|
2023-07-23 00:29:54 -07:00
|
|
|
"type": "status"
|
2021-11-07 08:42:56 -08:00
|
|
|
}
|
2022-02-03 01:22:57 -08:00
|
|
|
],
|
|
|
|
"type": "prompt"
|
2021-11-07 08:42:56 -08:00
|
|
|
}
|
2022-02-03 01:22:57 -08:00
|
|
|
],
|
2022-03-27 01:12:47 -07:00
|
|
|
"version": 2
|
2021-06-21 09:43:27 -07:00
|
|
|
}
|