Upgrade OMP
This commit is contained in:
parent
39c538ac96
commit
59e9d0fd5b
1 changed files with 97 additions and 93 deletions
190
.config/omp.toml
190
.config/omp.toml
|
@ -1,96 +1,100 @@
|
||||||
|
|
||||||
version = 2
|
|
||||||
final_space = true
|
|
||||||
console_title_template = '{{ .Shell }} in {{ .Folder }}'
|
console_title_template = '{{ .Shell }} in {{ .Folder }}'
|
||||||
|
version = 3
|
||||||
[[blocks]]
|
final_space = true
|
||||||
type = 'prompt'
|
|
||||||
alignment = 'left'
|
|
||||||
newline = true
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
type = 'path'
|
|
||||||
style = 'diamond'
|
|
||||||
leading_diamond = ''
|
|
||||||
trailing_diamond = ''
|
|
||||||
template = '{{ path .Path .Location }} '
|
|
||||||
background = 'p:beige'
|
|
||||||
foreground = 'p:black'
|
|
||||||
|
|
||||||
[blocks.segments.properties]
|
|
||||||
style = 'agnoster_full'
|
|
||||||
[blocks.segments.properties.mapped_locations]
|
|
||||||
"~" = ""
|
|
||||||
"~/Downloads" = ""
|
|
||||||
"~/Workspace" = " "
|
|
||||||
"~/Workspace/Learning" = " "
|
|
||||||
"~/Workspace/School" = " "
|
|
||||||
"~/Workspace/AdventOfCode" = " "
|
|
||||||
"~/Workspace/Userscripts" = ""
|
|
||||||
"~/Workspace/Forgejo" = ""
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
type = 'git'
|
|
||||||
style = 'diamond'
|
|
||||||
trailing_diamond = ''
|
|
||||||
leading_diamond = '<transparent,background></>'
|
|
||||||
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 }}',
|
|
||||||
]
|
|
||||||
template = ' {{ if .UpstreamURL }}{{ .UpstreamIcon }}{{ end }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }} '
|
|
||||||
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]]
|
|
||||||
type = 'node'
|
|
||||||
style = 'diamond'
|
|
||||||
trailing_diamond = ''
|
|
||||||
leading_diamond = '<transparent,background></>'
|
|
||||||
template = 'JS '
|
|
||||||
background = 'p:gray'
|
|
||||||
foreground = 'p:green'
|
|
||||||
|
|
||||||
[blocks.segments.properties]
|
|
||||||
display_mode = 'files'
|
|
||||||
fetch_package_manager = false
|
|
||||||
home_enabled = false
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
type = 'go'
|
|
||||||
style = 'diamond'
|
|
||||||
trailing_diamond = ''
|
|
||||||
leading_diamond = '<transparent,background></>'
|
|
||||||
template = 'Go '
|
|
||||||
background = 'p:gray'
|
|
||||||
foreground = 'p:cyan'
|
|
||||||
|
|
||||||
[transient_prompt]
|
|
||||||
template = "\ue285 "
|
|
||||||
|
|
||||||
[palette]
|
[palette]
|
||||||
black = '#11111b'
|
beige = '#f2cdcd'
|
||||||
gray = '#6c7086'
|
black = '#11111b'
|
||||||
blue = '#89b4fa'
|
blue = '#89b4fa'
|
||||||
cyan = '#74c7ec'
|
cyan = '#74c7ec'
|
||||||
green = '#a6e3a1'
|
gray = '#6c7086'
|
||||||
orange = '#fab387'
|
green = '#a6e3a1'
|
||||||
red = '#f38ba8'
|
orange = '#fab387'
|
||||||
white = '#cdd6f4'
|
red = '#f38ba8'
|
||||||
yellow = '#f9e2af'
|
white = '#cdd6f4'
|
||||||
beige = '#f2cdcd'
|
yellow = '#f9e2af'
|
||||||
|
|
||||||
|
[transient_prompt]
|
||||||
|
template = ' '
|
||||||
|
|
||||||
|
[[blocks]]
|
||||||
|
type = 'prompt'
|
||||||
|
alignment = 'left'
|
||||||
|
newline = true
|
||||||
|
|
||||||
|
[[blocks.segments]]
|
||||||
|
leading_diamond = ''
|
||||||
|
trailing_diamond = ''
|
||||||
|
template = '{{ path .Path .Location }} '
|
||||||
|
foreground = 'p:black'
|
||||||
|
background = 'p:beige'
|
||||||
|
type = 'path'
|
||||||
|
style = 'diamond'
|
||||||
|
|
||||||
|
[blocks.segments.properties]
|
||||||
|
cache_duration = 'none'
|
||||||
|
style = 'agnoster_full'
|
||||||
|
|
||||||
|
[blocks.segments.properties.mapped_locations]
|
||||||
|
'~' = ''
|
||||||
|
'~/Downloads' = ''
|
||||||
|
'~/Workspace' = ' '
|
||||||
|
'~/Workspace/AdventOfCode' = ' '
|
||||||
|
'~/Workspace/Forgejo' = ''
|
||||||
|
'~/Workspace/Learning' = ' '
|
||||||
|
'~/Workspace/School' = ' '
|
||||||
|
'~/Workspace/Userscripts' = ''
|
||||||
|
|
||||||
|
[[blocks.segments]]
|
||||||
|
leading_diamond = '<transparent,background></>'
|
||||||
|
trailing_diamond = ''
|
||||||
|
template = ' {{ if .UpstreamURL }}{{ .UpstreamIcon }}{{ end }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }} '
|
||||||
|
foreground = 'p:black'
|
||||||
|
background = 'p:green'
|
||||||
|
type = 'git'
|
||||||
|
style = 'diamond'
|
||||||
|
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 }}']
|
||||||
|
|
||||||
|
[blocks.segments.properties]
|
||||||
|
branch_max_length = 25
|
||||||
|
cache_duration = 'none'
|
||||||
|
fetch_status = true
|
||||||
|
fetch_upstream_icon = true
|
||||||
|
|
||||||
|
[[blocks.segments]]
|
||||||
|
template = ' '
|
||||||
|
foreground = 'p:white'
|
||||||
|
powerline_symbol = '60°, 10'
|
||||||
|
background = 'p:yellow'
|
||||||
|
type = 'root'
|
||||||
|
style = 'powerline'
|
||||||
|
|
||||||
|
[blocks.segments.properties]
|
||||||
|
cache_duration = 'none'
|
||||||
|
|
||||||
|
[[blocks.segments]]
|
||||||
|
leading_diamond = '<transparent,background></>'
|
||||||
|
trailing_diamond = ''
|
||||||
|
template = 'JS '
|
||||||
|
foreground = 'p:green'
|
||||||
|
background = 'p:gray'
|
||||||
|
type = 'node'
|
||||||
|
style = 'diamond'
|
||||||
|
|
||||||
|
[blocks.segments.properties]
|
||||||
|
cache_duration = 'none'
|
||||||
|
display_mode = 'files'
|
||||||
|
fetch_package_manager = false
|
||||||
|
home_enabled = false
|
||||||
|
|
||||||
|
[[blocks.segments]]
|
||||||
|
leading_diamond = '<transparent,background></>'
|
||||||
|
trailing_diamond = ''
|
||||||
|
template = 'Go '
|
||||||
|
foreground = 'p:cyan'
|
||||||
|
background = 'p:gray'
|
||||||
|
type = 'go'
|
||||||
|
style = 'diamond'
|
||||||
|
|
||||||
|
[blocks.segments.properties]
|
||||||
|
cache_duration = 'none'
|
||||||
|
|
Loading…
Add table
Reference in a new issue