119 lines
3.3 KiB
TOML
119 lines
3.3 KiB
TOML
version = 2
|
|
final_space = true
|
|
console_title_template = '{{ .Shell }} in {{ .Folder }}'
|
|
|
|
[[blocks]]
|
|
type = 'prompt'
|
|
alignment = 'left'
|
|
newline = true
|
|
|
|
[[blocks.segments]]
|
|
type = 'session'
|
|
style = 'diamond'
|
|
leading_diamond = ''
|
|
trailing_diamond = ''
|
|
template = ' {{ if .SSHSession }} {{ end }}{{ .UserName }} '
|
|
background = 'p:cyan'
|
|
foreground = 'p:black'
|
|
|
|
[[blocks.segments]]
|
|
type = 'path'
|
|
style = 'powerline'
|
|
powerline_symbol = ''
|
|
template = ' {{ path .Path .Location }} '
|
|
background = 'p:beige'
|
|
foreground = 'p:black'
|
|
|
|
[blocks.segments.properties]
|
|
style = 'folder'
|
|
|
|
[[blocks.segments]]
|
|
type = 'git'
|
|
style = 'powerline'
|
|
powerline_symbol = ''
|
|
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_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 }} '
|
|
background = 'p:green'
|
|
foreground = 'p:black'
|
|
|
|
[blocks.segments.properties]
|
|
branch_max_length = 25
|
|
fetch_status = true
|
|
fetch_upstream_icon = true
|
|
|
|
[[blocks.segments]]
|
|
type = 'root'
|
|
style = 'powerline'
|
|
powerline_symbol = '60°, 10'
|
|
template = ' '
|
|
background = 'p:yellow'
|
|
foreground = 'p:white'
|
|
|
|
[[blocks.segments]]
|
|
type = 'status'
|
|
style = 'diamond'
|
|
background_templates = ['{{ if gt .Code 0 }}p:red{{ end }}']
|
|
leading_diamond = '<transparent,background></>'
|
|
trailing_diamond = ''
|
|
template = ' {{ if gt .Code 0 }}{{ else }}{{ end }} '
|
|
background = 'p:blue'
|
|
foreground = 'p:black'
|
|
|
|
[blocks.segments.properties]
|
|
always_enabled = true
|
|
|
|
[[blocks]]
|
|
type = 'rprompt'
|
|
|
|
[[blocks.segments]]
|
|
type = 'node'
|
|
style = 'plain'
|
|
template = ' '
|
|
background = 'transparent'
|
|
foreground = 'p:green'
|
|
|
|
[blocks.segments.properties]
|
|
display_mode = 'files'
|
|
fetch_package_manager = false
|
|
home_enabled = false
|
|
|
|
[[blocks.segments]]
|
|
type = 'go'
|
|
style = 'plain'
|
|
template = ' '
|
|
background = 'transparent'
|
|
foreground = 'p:blue'
|
|
|
|
[blocks.segments.properties]
|
|
fetch_version = false
|
|
|
|
[[blocks.segments]]
|
|
type = 'python'
|
|
style = 'plain'
|
|
template = ' '
|
|
background = 'transparent'
|
|
foreground = 'p:yellow'
|
|
|
|
[blocks.segments.properties]
|
|
display_mode = 'files'
|
|
fetch_version = false
|
|
fetch_virtual_env = false
|
|
|
|
[transient_prompt]
|
|
foreground_templates = [
|
|
"{{if gt .Code 0}}p:red{{end}}",
|
|
"{{if eq .Code 0}}p:green{{end}}"
|
|
]
|
|
background = 'transparent'
|
|
template = ' '
|
|
[palette]
|
|
black = '#11111b'
|
|
blue = '#89b4fa'
|
|
cyan = '#74c7ec'
|
|
green = '#a6e3a1'
|
|
orange = '#fab387'
|
|
red = '#f38ba8'
|
|
white = '#cdd6f4'
|
|
yellow = '#f9e2af'
|
|
beige = '#f2cdcd'
|