Improve oh-my-posh terminal

Improve colour used for command duration
Add transient prompt
This commit is contained in:
Jonny Barnes 2024-06-18 18:04:30 +01:00
parent 8e6dffbd9b
commit 504f58e2a2
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8

View file

@ -1,6 +1,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
version = 2 version = 2
final_space = true
console_title_template = '{{ .Folder }}' console_title_template = '{{ .Folder }}'
[[blocks]] [[blocks]]
@ -62,7 +63,7 @@ console_title_template = '{{ .Folder }}'
style = "diamond" style = "diamond"
leading_diamond = '' leading_diamond = ''
trailing_diamond = '' trailing_diamond = ''
foreground = "red" foreground = "lightRed"
background = "black" background = "black"
template = "󱦟 {{ .FormattedMs }} " template = "󱦟 {{ .FormattedMs }} "
@ -86,3 +87,12 @@ console_title_template = '{{ .Folder }}'
style = 'plain' style = 'plain'
foreground = 'default' foreground = 'default'
template = ' ' template = ' '
[transient_prompt]
foreground_templates = [
"{{if gt .Code 0}}red{{end}}",
"{{if eq .Code 0}}default{{end}}",
]
background = 'transparent'
template = '$ '