dotfiles/ohmyposh/zen.toml

162 lines
4.3 KiB
TOML

#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
version = 2
final_space = true
console_title_template = '{{ .Shell }} in {{ .Folder }}'
[[blocks]]
type = 'prompt'
alignment = 'left'
[[blocks.segments]]
type = 'session'
style = 'diamond'
foreground = 'p:black'
background = 'p:yellow'
leading_diamond = ''
trailing_diamond = ''
template = ' {{ if .SSHSession }} {{ end }}{{ .UserName }} '
[[blocks.segments]]
type = 'path'
style = 'powerline'
powerline_symbol = ''
foreground = 'p:white'
background = 'p:orange'
template = '  {{ path .Path .Location }} '
[blocks.segments.properties]
style = 'folder'
[[blocks.segments]]
type = 'git'
style = 'powerline'
powerline_symbol = ''
foreground = 'p:black'
foreground_templates = ['{{ if or (.Working.Changed) (.Staging.Changed) }}p:black{{ end }}', '{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:white{{ end }}', '{{ if gt .Ahead 0 }}p:white{{ end }}']
background = 'p:green'
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 }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }} '
[blocks.segments.properties]
branch_max_length = 25
fetch_status = true
fetch_upstream_icon = true
[[blocks.segments]]
type = 'root'
style = 'powerline'
powerline_symbol = ''
foreground = 'p:white'
background = 'p:yellow'
template = '  '
[[blocks.segments]]
type = 'status'
style = 'diamond'
foreground = 'p:white'
background = 'p:blue'
background_templates = ['{{ if gt .Code 0 }}p:red{{ end }}']
leading_diamond = '<transparent,background></>'
trailing_diamond = ''
template = ' {{ if gt .Code 0 }}{{ else }}{{ end }} '
[blocks.segments.properties]
always_enabled = true
[[blocks]]
type = 'rprompt'
[[blocks.segments]]
type = 'node'
style = 'plain'
foreground = 'p:green'
background = 'transparent'
template = ' '
[blocks.segments.properties]
display_mode = 'files'
fetch_package_manager = false
home_enabled = false
[[blocks.segments]]
type = 'go'
style = 'plain'
foreground = 'p:blue'
background = 'transparent'
template = ' '
[blocks.segments.properties]
fetch_version = false
[[blocks.segments]]
type = 'python'
style = 'plain'
foreground = 'p:yellow'
background = 'transparent'
template = ' '
[blocks.segments.properties]
display_mode = 'files'
fetch_version = false
fetch_virtual_env = false
[[blocks.segments]]
type = 'shell'
style = 'plain'
foreground = 'p:white'
background = 'transparent'
template = 'in <p:blue><b>{{ .Name }}</b></> '
[[blocks.segments]]
type = 'time'
style = 'plain'
foreground = 'p:white'
background = 'transparent'
template = 'at <p:blue><b>{{ .CurrentDate | date "15:04:05" }}</b></>'
[[tooltips]]
type = 'aws'
tips = ['aws']
style = 'diamond'
foreground = 'p:white'
background = 'p:orange'
leading_diamond = ''
trailing_diamond = ''
template = '  {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} '
[tooltips.properties]
display_default = true
[[tooltips]]
type = 'az'
tips = ['az']
style = 'diamond'
foreground = 'p:white'
background = 'p:blue'
leading_diamond = ''
trailing_diamond = ''
template = '  {{ .Name }} '
[tooltips.properties]
display_default = true
[transient_prompt]
foreground = 'p:black'
background = 'transparent'
template = '<p:yellow,transparent></><,p:yellow> {{ .Folder }} </><p:yellow,transparent></> '
[secondary_prompt]
foreground = 'p:black'
background = 'transparent'
template = '<p:yellow,transparent></><,p:yellow> > </><p:yellow,transparent></> '
[palette]
black = '#262B44'
blue = '#4B95E9'
green = '#59C9A5'
orange = '#F07623'
red = '#D81E5B'
white = '#E0DEF4'
yellow = '#F3AE35'