dotfiles/_saved/omp/omp.toml

87 lines
2.2 KiB
TOML
Raw Permalink Normal View History

2024-06-24 15:20:23 +02:00
'$schema' = 'https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json'
final_space = true
version = 2
2024-07-13 17:00:24 +02:00
disable_notice = true
auto_upgrade = false
2024-07-13 17:00:24 +02:00
2024-06-24 15:20:23 +02:00
[[blocks]]
type = 'prompt'
alignment = 'left'
[[blocks.segments]]
type = 'python'
style = 'plain'
background = 'transparent'
foreground = '15'
template = ' {{ .Venv }} '
[blocks.segments.properties]
home_enabled = true
[[blocks.segments]]
type = 'session'
style = 'plain'
background = 'transparent'
foreground_templates = [
2024-09-30 00:57:55 +02:00
"{{ if .Root }}196{{ else }}246{{ end }}"
2024-06-24 15:20:23 +02:00
]
template = '{{ if or (.SSHSession) (.Root) }}{{ .UserName }}@{{ .HostName }} {{ end }}'
[[blocks.segments]]
type = 'path'
style = 'plain'
background = 'transparent'
foreground = '37'
2024-07-05 18:47:59 +02:00
template = '{{ if not .Writable }} {{ end }}{{ $segment := .Segments.Git }}{{ if $segment.Dir }}{{ $segment.RepoName}}{{if ne $segment.RepoName .Path}}{{ trimPrefix $segment.Dir .PWD }}{{ end }}{{ else }}{{ .Path }}{{ end }} '
2024-06-24 15:20:23 +02:00
[blocks.segments.properties]
style = 'full'
[[blocks.segments]]
type = 'git'
style = 'plain'
background = 'transparent'
foreground = '246'
2024-11-01 00:17:25 +01:00
template = '{{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} {{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}{{ if gt .StashCount 0 }}≡ {{ end }}'
2024-06-24 15:20:23 +02:00
[blocks.segments.properties]
branch_icon = ' '
commit_icon = '@'
fetch_status = true
[[blocks.segments]]
type = 'text'
style = 'plain'
background = 'transparent'
foreground_templates = [
2024-09-30 00:57:55 +02:00
'{{ if eq .Code 0 }}76{{ else }}196{{ end }}'
2024-06-24 15:20:23 +02:00
]
template = ''
[transient_prompt]
background = 'transparent'
foreground_templates = [
2024-09-30 00:57:55 +02:00
'{{ if eq .Code 0 }}76{{ else }}196{{ end }}'
2024-06-24 15:20:23 +02:00
]
template = ' '
[secondary_prompt]
background = 'transparent'
foreground = '220'
template = ' '
[[blocks]]
type = 'rprompt'
overflow = 'hidden'
[[blocks.segments]]
type = 'executiontime'
style = 'plain'
background = 'transparent'
foreground = '220'
[blocks.segments.properties]
style = 'round'
threshold = 3000