dotfiles/jmb.omp.toml

100 lines
2.6 KiB
TOML
Raw Normal View History

2024-06-10 20:37:31 +01:00
#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
version = 2
final_space = true
2024-06-10 20:37:31 +01:00
console_title_template = '{{ .Folder }}'
[[blocks]]
type = 'prompt'
alignment = 'left'
[[blocks.segments]]
type = 'os'
style = 'diamond'
powerline_symbol = ''
foreground = '#ffffff'
background = '#546e7a'
leading_diamond = ''
template = '{{.Icon}} '
[[blocks.segments]]
type = 'path'
style = 'powerline'
powerline_symbol = ''
foreground = '#ffffff'
background = '#0080ff'
template = '  {{ .Path }} '
[blocks.segments.properties]
style = 'full'
[[blocks.segments]]
type = 'git'
style = 'powerline'
powerline_symbol = ''
foreground = '#000000'
background = '#5cec8b'
2024-06-10 20:37:31 +01:00
background_templates = ['{{ if or (.Working.Changed) (.Staging.Changed) }}#FFEB3B{{ end }}', '{{ if and (gt .Ahead 0) (gt .Behind 0) }}#FFA300{{ end }}', '{{ if gt .Ahead 0 }}#FF7070{{ end }}', '{{ if gt .Behind 0 }}#90F090{{ end }}']
template = ' {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }}  {{ .StashCount }}{{ end }} '
[blocks.segments.properties]
fetch_stash_count = true
fetch_status = true
fetch_upstream_icon = true
2024-06-18 18:19:11 +01:00
branch_icon = ' '
2024-06-10 20:37:31 +01:00
[[blocks.segments]]
type = 'status'
style = 'diamond'
foreground = '#ffffff'
background = '#2e9599'
background_templates = ['{{ if gt .Code 0 }}#f1184c{{ end }}']
trailing_diamond = ''
template = ' '
[blocks.segments.properties]
always_enabled = true
[[blocks]]
type = 'prompt'
alignment = 'right'
[[blocks.segments]]
type = "executiontime"
style = "diamond"
leading_diamond = ''
trailing_diamond = ''
foreground = "lightRed"
2024-06-10 20:37:31 +01:00
background = "black"
template = "󱦟 {{ .FormattedMs }} "
[blocks.segments.properties]
threshold = 2000
style = "austin"
[[blocks]]
type = 'prompt'
alignment = 'left'
newline = true
[[blocks.segments]]
type = 'root'
style = 'plain'
foreground = 'yellow'
template = ' '
[[blocks.segments]]
type = 'text'
style = 'plain'
foreground = 'default'
template = ' '
[transient_prompt]
foreground_templates = [
"{{if gt .Code 0}}red{{end}}",
"{{if eq .Code 0}}default{{end}}",
]
background = 'transparent'
template = '$ '