88 lines
2.4 KiB
TOML
88 lines
2.4 KiB
TOML
#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
|
|
|
|
version = 2
|
|
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 = '#c19c00'
|
|
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
|
|
|
|
[[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 = 'prompt'
|
|
alignment = 'right'
|
|
|
|
[[blocks.segments]]
|
|
type = "executiontime"
|
|
style = "diamond"
|
|
leading_diamond = ''
|
|
trailing_diamond = ''
|
|
foreground = "red"
|
|
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 = ' '
|