Improve oh-my-posh terminal
Improve colour used for command duration Add transient prompt
This commit is contained in:
parent
8e6dffbd9b
commit
504f58e2a2
1 changed files with 11 additions and 1 deletions
12
jmb.omp.toml
12
jmb.omp.toml
|
@ -1,6 +1,7 @@
|
|||
#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
|
||||
|
||||
version = 2
|
||||
final_space = true
|
||||
console_title_template = '{{ .Folder }}'
|
||||
|
||||
[[blocks]]
|
||||
|
@ -62,7 +63,7 @@ console_title_template = '{{ .Folder }}'
|
|||
style = "diamond"
|
||||
leading_diamond = ''
|
||||
trailing_diamond = ''
|
||||
foreground = "red"
|
||||
foreground = "lightRed"
|
||||
background = "black"
|
||||
template = " {{ .FormattedMs }} "
|
||||
|
||||
|
@ -86,3 +87,12 @@ console_title_template = '{{ .Folder }}'
|
|||
style = 'plain'
|
||||
foreground = 'default'
|
||||
template = ' '
|
||||
|
||||
[transient_prompt]
|
||||
foreground_templates = [
|
||||
"{{if gt .Code 0}}red{{end}}",
|
||||
"{{if eq .Code 0}}default{{end}}",
|
||||
]
|
||||
background = 'transparent'
|
||||
template = '$ '
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue