addet transient prompt

This commit is contained in:
pika 2024-11-04 19:43:13 +01:00
parent 65078081e2
commit 9ea122f0dd

View file

@ -1,3 +1,4 @@
"$schema" = "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json"
version = 3
@ -181,3 +182,12 @@ type = "prompt"
[blocks.segments.properties]
always_enabled = true
[transient_prompt]
foreground_templates = [
"{{if gt .Code 0}}red{{end}}",
"{{if eq .Code 0}}green{{end}}",
]
background = 'transparent'
template = ' '
always_enabled = true