dotfiles/.config/ohmyposh/config.toml

79 lines
1.7 KiB
TOML
Raw Normal View History

2024-06-07 16:59:09 -05:00
console_title_template = '{{ .Shell }} in {{ .Folder }}'
2025-01-10 05:38:08 -06:00
version = 3
final_space = true
[secondary_prompt]
template = ' '
foreground = 'magenta'
background = 'transparent'
2024-06-07 16:59:09 -05:00
[[blocks]]
type = 'prompt'
alignment = 'left'
newline = true
[[blocks.segments]]
2025-01-10 05:38:08 -06:00
template = '{{ .Path }}'
foreground = 'blue'
background = 'transparent'
2024-06-07 16:59:09 -05:00
type = 'path'
style = 'plain'
[blocks.segments.properties]
2025-01-10 05:38:08 -06:00
cache_duration = 'none'
2024-06-07 16:59:09 -05:00
style = 'full'
[[blocks.segments]]
2025-01-10 05:38:08 -06:00
template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} <cyan>{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}</>'
2024-06-07 16:59:09 -05:00
foreground = 'p:grey'
background = 'transparent'
2025-01-10 05:38:08 -06:00
type = 'git'
style = 'plain'
2024-06-07 16:59:09 -05:00
[blocks.segments.properties]
branch_icon = ''
2025-01-10 05:38:08 -06:00
cache_duration = 'none'
2024-06-07 16:59:09 -05:00
commit_icon = '@'
fetch_status = true
[[blocks]]
type = 'rprompt'
overflow = 'hidden'
[[blocks.segments]]
2025-01-10 05:38:08 -06:00
template = '{{ .FormattedMs }} '
2024-06-07 16:59:09 -05:00
foreground = 'yellow'
background = 'transparent'
2025-01-10 05:38:08 -06:00
type = 'executiontime'
style = 'plain'
2024-06-07 16:59:09 -05:00
[blocks.segments.properties]
2025-01-10 05:38:08 -06:00
cache_duration = 'none'
2024-06-07 16:59:09 -05:00
threshold = 5000
2024-06-08 06:40:02 -05:00
[[blocks.segments]]
2025-01-10 05:38:08 -06:00
template = '{{ .Shell }}'
foreground = 'blue'
background = 'transparent'
2024-06-08 06:40:02 -05:00
type = 'path'
style = 'plain'
[blocks.segments.properties]
2025-01-10 05:38:08 -06:00
cache_duration = 'none'
2024-06-08 06:40:02 -05:00
style = 'full'
2024-06-07 16:59:09 -05:00
[[blocks]]
type = 'prompt'
alignment = 'left'
newline = true
[[blocks.segments]]
2025-01-10 05:38:08 -06:00
template = ''
background = 'transparent'
2024-06-07 16:59:09 -05:00
type = 'text'
style = 'plain'
2025-01-10 05:38:08 -06:00
foreground_templates = ['{{if gt .Code 0}}red{{end}}', '{{if eq .Code 0}}magenta{{end}}']
2024-06-07 16:59:09 -05:00
2025-01-10 05:38:08 -06:00
[blocks.segments.properties]
cache_duration = 'none'