106 lines
2.8 KiB
TOML
106 lines
2.8 KiB
TOML
#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
|
|
|
|
version = 2
|
|
final_space = true
|
|
console_title_template = '{{ .Folder }}'
|
|
|
|
[[blocks]]
|
|
type = 'prompt'
|
|
alignment = 'left'
|
|
|
|
[[blocks.segments]]
|
|
type = 'os'
|
|
style = 'diamond'
|
|
powerline_symbol = ''
|
|
foreground = '#ffffff'
|
|
background = '#546e7a'
|
|
leading_diamond = ''
|
|
template = '{{.Icon}} '
|
|
|
|
[[blocks.segments]]
|
|
type = 'path'
|
|
style = 'powerline'
|
|
powerline_symbol = ''
|
|
foreground = '#ffffff'
|
|
background = '#0080ff'
|
|
template = ' {{ .Path }} '
|
|
|
|
[blocks.segments.properties]
|
|
style = 'full'
|
|
|
|
[[blocks.segments]]
|
|
type = 'git'
|
|
style = 'powerline'
|
|
powerline_symbol = ''
|
|
foreground = '#000000'
|
|
background = '#5cec8b'
|
|
background_templates = ['{{ if or (.Working.Changed) (.Staging.Changed) }}#FFEB3B{{ end }}', '{{ if and (gt .Ahead 0) (gt .Behind 0) }}#FFA300{{ end }}', '{{ if gt .Ahead 0 }}#FF7070{{ end }}', '{{ if gt .Behind 0 }}#90F090{{ end }}']
|
|
template = ' {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} {{ .StashCount }}{{ end }} '
|
|
|
|
[blocks.segments.properties]
|
|
fetch_stash_count = true
|
|
fetch_status = true
|
|
fetch_upstream_icon = true
|
|
branch_icon = ' '
|
|
|
|
[[blocks.segments]]
|
|
type = 'status'
|
|
style = 'diamond'
|
|
foreground = '#ffffff'
|
|
background = '#2e9599'
|
|
background_templates = ['{{ if gt .Code 0 }}#f1184c{{ end }}']
|
|
trailing_diamond = ''
|
|
template = ' '
|
|
|
|
[blocks.segments.properties]
|
|
always_enabled = true
|
|
|
|
[[blocks]]
|
|
type = 'rprompt'
|
|
alignment = 'left'
|
|
|
|
[[blocks.segments]]
|
|
type = "text"
|
|
style = "plain"
|
|
foreground = "default"
|
|
background = "transparent"
|
|
template = "{{ if .Env.SHELL_LOADING }} loading {{ end }}"
|
|
|
|
[[blocks.segments]]
|
|
type = "executiontime"
|
|
style = "diamond"
|
|
leading_diamond = ''
|
|
trailing_diamond = ''
|
|
foreground = "lightRed"
|
|
background = "black"
|
|
template = " {{ .FormattedMs }} "
|
|
|
|
[blocks.segments.properties]
|
|
threshold = 2000
|
|
style = "austin"
|
|
|
|
[[blocks]]
|
|
type = 'prompt'
|
|
alignment = 'left'
|
|
newline = true
|
|
|
|
[[blocks.segments]]
|
|
type = 'root'
|
|
style = 'plain'
|
|
foreground = 'yellow'
|
|
template = ' '
|
|
|
|
[[blocks.segments]]
|
|
type = 'text'
|
|
style = 'plain'
|
|
foreground = 'default'
|
|
template = ' '
|
|
|
|
[transient_prompt]
|
|
foreground_templates = [
|
|
"{{if gt .Code 0}}red{{end}}",
|
|
"{{if eq .Code 0}}default{{end}}",
|
|
]
|
|
background = 'transparent'
|
|
template = '$ '
|
|
|