87 lines
1.8 KiB
TOML
87 lines
1.8 KiB
TOML
version = 2
|
||
final_space = true
|
||
console_title_template = '{{ .Shell }} in {{ .Folder }}'
|
||
|
||
[[blocks]]
|
||
type = 'prompt'
|
||
alignment = 'left'
|
||
newline = true
|
||
|
||
[[blocks.segments]]
|
||
type = 'text'
|
||
style = 'plain'
|
||
background = 'transparent'
|
||
foreground = 'green'
|
||
template = '{{ .UserName }}'
|
||
|
||
[[blocks.segments]]
|
||
type = 'text'
|
||
style = 'plain'
|
||
background = 'transparent'
|
||
foreground = 'white'
|
||
template = '@{{ .HostName }}'
|
||
|
||
[[blocks.segments]]
|
||
type = 'path'
|
||
style = 'plain'
|
||
background = 'transparent'
|
||
foreground = 'green'
|
||
|
||
[blocks.segments.properties]
|
||
style = 'full'
|
||
|
||
[[blocks.segments]]
|
||
type = 'git'
|
||
style = 'plain'
|
||
foreground = '#6c6c6c'
|
||
background = 'transparent'
|
||
template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} <cyan>{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}</>'
|
||
|
||
[blocks.segments.properties]
|
||
branch_icon = ''
|
||
commit_icon = '@'
|
||
fetch_status = true
|
||
|
||
[[blocks]]
|
||
type = 'rprompt'
|
||
overflow = 'hidden'
|
||
|
||
[[blocks.segments]]
|
||
type = 'executiontime'
|
||
style = 'plain'
|
||
foreground = 'yellow'
|
||
background = 'transparent'
|
||
template = '{{ .FormattedMs }}'
|
||
#template = '{{ div .Ms 1000 }}s'
|
||
|
||
[blocks.segments.properties]
|
||
threshold = 5000
|
||
|
||
[[blocks]]
|
||
type = 'prompt'
|
||
alignment = 'left'
|
||
newline = true
|
||
|
||
[[blocks.segments]]
|
||
type = 'text'
|
||
style = 'plain'
|
||
foreground_templates = [
|
||
"{{if gt .Code 0}}red{{end}}",
|
||
"{{if eq .Code 0}}green{{end}}"
|
||
]
|
||
background = 'transparent'
|
||
template = '❯'
|
||
|
||
[transient_prompt]
|
||
foreground_templates = [
|
||
"{{if gt .Code 0}}red{{end}}",
|
||
"{{if eq .Code 0}}green{{end}}"
|
||
]
|
||
background = 'transparent'
|
||
template = '❯ '
|
||
|
||
[secondary_prompt]
|
||
foreground = 'green'
|
||
background = 'transparent'
|
||
template = '❯❯ '
|