feat(config): oh-my-posh autoupgrade

This commit is contained in:
2024-08-29 13:13:21 +03:00
parent d8011728c7
commit 99e7578d60
3 changed files with 9 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": true, "final_space": true,
"console_title_template": "{{.UserName}}@{{.HostName}} {{.Shell}} in {{.PWD}}", "console_title_template": "{{.UserName}}@{{.HostName}} {{.Shell}} in {{.PWD}}",
"auto_upgrade": true,
"blocks": [ "blocks": [
{ {
"alignment": "left", "alignment": "left",
@@ -111,7 +112,9 @@
{ {
"background": "transparent", "background": "transparent",
"foreground": "lightGreen", "foreground": "lightGreen",
"foreground_templates": ["{{ if gt .Code 0 }}red{{ end }}"], "foreground_templates": [
"{{ if gt .Code 0 }}red{{ end }}"
],
"properties": { "properties": {
"always_enabled": true "always_enabled": true
}, },
@@ -126,7 +129,9 @@
"transient_prompt": { "transient_prompt": {
"background": "transparent", "background": "transparent",
"foreground": "lightGreen", "foreground": "lightGreen",
"foreground_templates": ["{{ if gt .Code 0 }}red{{ end }}"], "foreground_templates": [
"{{ if gt .Code 0 }}red{{ end }}"
],
"template": "\u279c " "template": "\u279c "
}, },
"version": 2 "version": 2

View File

@@ -2,6 +2,7 @@
final_space = true final_space = true
console_title_template = "{{.UserName}}@{{.HostName}} {{.Shell}} in {{.PWD}}" console_title_template = "{{.UserName}}@{{.HostName}} {{.Shell}} in {{.PWD}}"
version = 2 version = 2
auto_upgrade = true
[[blocks]] [[blocks]]
alignment = "left" alignment = "left"

View File

@@ -3,6 +3,7 @@
version = 2 version = 2
final_space = true final_space = true
console_title_template = '{{ .Shell }} in {{ .Folder }}' console_title_template = '{{ .Shell }} in {{ .Folder }}'
auto_upgrade = true
[[blocks]] [[blocks]]
type = 'prompt' type = 'prompt'