feat: adjust prompt configuration

This commit is contained in:
Anthony Oteri
2025-11-08 11:38:13 -05:00
parent b3eee10269
commit af6dc8195f
+31 -37
View File
@@ -3,13 +3,13 @@ version = 3
final_space = true final_space = true
[palette] [palette]
black = '#262B44' black = '#282828'
blue = '#4B95E9' blue = '#458588'
green = '#59C9A5' green = '#98971a'
orange = '#F07623' orange = '#d79921'
red = '#D81E5B' red = '#cc241d'
white = '#E0DEF4' white = '#ebdbb2'
yellow = '#F3AE35' yellow = '#fabd2f'
[secondary_prompt] [secondary_prompt]
template = '<p:yellow,transparent></><,p:yellow> > </><p:yellow,transparent></> ' template = '<p:yellow,transparent></><,p:yellow> > </><p:yellow,transparent></> '
@@ -42,10 +42,10 @@ final_space = true
style = 'diamond' style = 'diamond'
[[blocks.segments]] [[blocks.segments]]
template = ' {{ path .Path .Location }} ' template = '  <b>{{ path .Path .Location }}</b> '
foreground = 'p:white' foreground = 'p:orange'
powerline_symbol = '' powerline_symbol = ''
background = 'p:orange' background = 'p:black'
type = 'path' type = 'path'
style = 'powerline' style = 'powerline'
@@ -53,25 +53,25 @@ final_space = true
style = 'folder' style = 'folder'
[[blocks.segments]] [[blocks.segments]]
template = ' {{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }} ' template = '  <b>{{ .HEAD }}</b>{{ if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }} '
foreground = 'p:black' foreground = 'p:green'
powerline_symbol = '' powerline_symbol = ''
background = 'p:green' background = 'p:black'
type = 'git' type = 'git'
style = 'powerline' style = 'powerline'
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 }}'] foreground_templates = ['{{ if or (.Working.Changed) (.Staging.Changed) }}p:green{{ end }}', '{{ if eq .Background "p:yellow" }}p:black{{ 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 }}'] background_templates = ['{{ if or (.Working.Changed) (.Staging.Changed) }}p:yellow{{ end }}']
[blocks.segments.properties] [blocks.segments.properties]
branch_template = '{{ trunc 25 .Branch }}' branch_template = '{{ trunc 25 .Branch }}'
fetch_status = true fetch_status = true
fetch_upstream_icon = true fetch_upstream_icon = false
[[blocks.segments]] [[blocks.segments]]
template = '  ' template = '  '
foreground = 'p:white' foreground = 'p:yellow'
powerline_symbol = '' powerline_symbol = ''
background = 'p:yellow' background = 'p:black'
type = 'root' type = 'root'
style = 'powerline' style = 'powerline'
@@ -79,8 +79,8 @@ final_space = true
leading_diamond = '<transparent,background></>' leading_diamond = '<transparent,background></>'
trailing_diamond = '' trailing_diamond = ''
template = ' {{ if gt .Code 0 }}{{ else }}{{ end }} ' template = ' {{ if gt .Code 0 }}{{ else }}{{ end }} '
foreground = 'p:white' foreground = 'p:blue'
background = 'p:blue' background = 'p:black'
type = 'status' type = 'status'
style = 'diamond' style = 'diamond'
background_templates = ['{{ if gt .Code 0 }}p:red{{ end }}'] background_templates = ['{{ if gt .Code 0 }}p:red{{ end }}']
@@ -92,7 +92,7 @@ final_space = true
type = 'rprompt' type = 'rprompt'
[[blocks.segments]] [[blocks.segments]]
template = ' ' template = ' <b>{{ .Version }}</b>'
foreground = 'p:green' foreground = 'p:green'
background = 'transparent' background = 'transparent'
type = 'node' type = 'node'
@@ -102,19 +102,10 @@ final_space = true
display_mode = 'files' display_mode = 'files'
fetch_package_manager = false fetch_package_manager = false
home_enabled = false home_enabled = false
fetch_version = true
[[blocks.segments]] [[blocks.segments]]
template = '' template = ' <b>{{ .Version }}</b>'
foreground = 'p:blue'
background = 'transparent'
type = 'go'
style = 'plain'
[blocks.segments.properties]
fetch_version = false
[[blocks.segments]]
template = ' '
foreground = 'p:yellow' foreground = 'p:yellow'
background = 'transparent' background = 'transparent'
type = 'python' type = 'python'
@@ -122,16 +113,19 @@ final_space = true
[blocks.segments.properties] [blocks.segments.properties]
display_mode = 'files' display_mode = 'files'
fetch_version = false fetch_version = true
fetch_virtual_env = false fetch_virtual_env = true
[[blocks.segments]] [[blocks.segments]]
template = 'in <p:blue><b>{{ .Name }}</b></> ' template = ' <b>{{ .Version }}</b>'
foreground = 'p:white' foreground = 'p:blue'
background = 'transparent' background = 'transparent'
type = 'shell' type = 'rust'
style = 'plain' style = 'plain'
[blocks.segments.properties]
fetch_version = true
[[blocks.segments]] [[blocks.segments]]
template = 'at <p:blue><b>{{ .CurrentDate | date "15:04:05" }}</b></>' template = 'at <p:blue><b>{{ .CurrentDate | date "15:04:05" }}</b></>'
foreground = 'p:white' foreground = 'p:white'