Dotfiles/.config/omp.toml

90 lines
2.5 KiB
TOML
Raw Normal View History

2024-09-04 04:18:00 +00:00
2024-09-01 10:40:29 +00:00
version = 2
final_space = true
console_title_template = '{{ .Shell }} in {{ .Folder }}'
[[blocks]]
type = 'prompt'
alignment = 'left'
newline = true
2024-09-04 04:18:00 +00:00
2024-09-01 10:40:29 +00:00
[[blocks.segments]]
2024-09-04 04:18:00 +00:00
type = 'path'
2024-09-01 10:40:29 +00:00
style = 'diamond'
leading_diamond = ''
trailing_diamond = ''
2024-09-04 04:18:00 +00:00
template = '{{ path .Path .Location }} '
2024-09-01 10:40:29 +00:00
background = 'p:beige'
foreground = 'p:black'
[blocks.segments.properties]
2024-09-04 04:18:00 +00:00
style = 'agnoster_full'
[blocks.segments.properties.mapped_locations]
"~" = ""
"~/Downloads" = "󰇚"
"~/Workspace" = " "
2024-09-01 10:40:29 +00:00
[[blocks.segments]]
type = 'git'
2024-09-04 04:18:00 +00:00
style = 'diamond'
trailing_diamond = ''
leading_diamond = '<transparent,background></>'
2024-09-01 10:40:29 +00:00
background_templates = ['{{ if or (.Working.Changed) (.Staging.Changed) }}p:yellow{{ end }}', '{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}', '{{ if gt .Ahead 0 }}#49416D{{ end }}', '{{ if gt .Behind 0 }}#7A306C{{ end }}']
2024-09-04 04:18:00 +00:00
template = ' {{ if .UpstreamURL }}{{ .UpstreamIcon }}{{ end }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }} '
2024-09-01 10:40:29 +00:00
background = 'p:green'
foreground = 'p:black'
[blocks.segments.properties]
branch_max_length = 25
fetch_status = true
fetch_upstream_icon = true
[[blocks.segments]]
type = 'root'
style = 'powerline'
powerline_symbol = '60°, 10'
template = '  '
background = 'p:yellow'
foreground = 'p:white'
[[blocks.segments]]
2024-09-04 04:18:00 +00:00
type = 'node'
2024-09-01 10:40:29 +00:00
style = 'diamond'
2024-09-04 04:18:00 +00:00
trailing_diamond = ''
2024-09-01 10:40:29 +00:00
leading_diamond = '<transparent,background></>'
2024-09-04 04:18:00 +00:00
template = 'JS  '
background = 'p:gray'
2024-09-01 10:40:29 +00:00
foreground = 'p:green'
[blocks.segments.properties]
display_mode = 'files'
fetch_package_manager = false
home_enabled = false
[[blocks.segments]]
type = 'go'
2024-09-04 04:18:00 +00:00
style = 'diamond'
trailing_diamond = ''
leading_diamond = '<transparent,background></>'
template = 'Go  '
background = 'p:gray'
foreground = 'p:cyan'
2024-09-01 10:40:29 +00:00
[transient_prompt]
2024-09-04 04:18:00 +00:00
foreground = "p:green"
foreground_templates = ["{{if gt .Code 0}}p:red{{end}}",]
2024-09-01 10:40:29 +00:00
background = 'transparent'
2024-09-04 04:18:00 +00:00
template = '{{ if gt .Code 0 }}{{ else }}{{ end }} '
2024-09-01 10:40:29 +00:00
[palette]
black = '#11111b'
2024-09-04 04:18:00 +00:00
gray = '#6c7086'
2024-09-01 10:40:29 +00:00
blue = '#89b4fa'
cyan = '#74c7ec'
green = '#a6e3a1'
orange = '#fab387'
red = '#f38ba8'
white = '#cdd6f4'
yellow = '#f9e2af'
beige = '#f2cdcd'
2024-09-04 04:18:00 +00:00