oh-my-posh/amro.toml
2024-12-25 10:16:24 +01:00

191 lines
4.7 KiB
TOML

console_title_template = ' {{ .Folder }} :: {{if .Root}}Admin{{end}}'
version = 3
final_space = true
[palette]
blue-bell = '#9aa5ce'
blue-black = '#565f89'
celeste-blue = '#b4f9f8'
cherry-red = '#562d38'
light-sky-blue = '#7dcfff'
main-bg = 'transparent'
pastal-grey = '#cfc9c2'
pistachio-green = '#9ece6a'
t-background = 'p:main-bg'
terminal-black = '#414868'
terminal-blue = '#7aa2f7'
terminal-green = '#73daca'
terminal-magenta = '#bb9af7'
terminal-red = '#f7768e'
terminal-white = '#c0caf5'
terminal-yellow = '#e0af68'
white-blue = '#a9b1d6'
[secondary_prompt]
template = ''
foreground = 'p:terminal-blue'
background = 'transparent'
[transient_prompt]
template = ''
background = 'transparent'
type = 'status'
foreground_templates = ['{{if gt .Code 0}}terminal-red{{end}}', '{{if eq .Code 0}}p:pistachio-green{{end}}']
[[blocks]]
type = 'prompt'
alignment = 'left'
newline = true
[[blocks.segments]]
template = ' {{ .UserName }}'
foreground = 'p:terminal-magenta'
type = 'session'
style = 'plain'
foreground_templates = ['{{if .SSHSession }}p:terminal-red{{end}}']
[blocks.segments.properties]
cache_duration = 'none'
[[blocks.segments]]
template = '󰁥 '
foreground = 'p:terminal-black'
type = 'session'
style = 'plain'
foreground_templates = ['{{if .SSHSession }}p:cherry-red{{end}}']
[blocks.segments.properties]
cache_duration = 'none'
[[blocks.segments]]
template = ' {{ .HostName }} '
foreground = 'p:terminal-magenta'
type = 'session'
style = 'plain'
foreground_templates = ['{{if .SSHSession }}p:terminal-red{{end}}']
[blocks.segments.properties]
cache_duration = 'none'
[[blocks]]
type = 'prompt'
alignment = 'left'
newline = true
[[blocks.segments]]
template = ' {{ .Path }} '
foreground = 'p:blue-black'
type = 'path'
style = 'plain'
[blocks.segments.properties]
cache_duration = 'none'
folder_separator_icon = '/'
style = 'full'
[[blocks.segments]]
template = '({{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} <p:pistachio-green>{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}</>)'
foreground = 'p:pistachio-green'
type = 'git'
style = 'plain'
foreground_templates = ['{{ if or (.Working.Changed) (.Staging.Changed) }}p:terminal-red{{ end }}', '{{ if and (gt .Ahead 0) (gt .Behind 0)}}p:light-sky-blue {{ end }}', '{{ if gt .Ahead 0 }}p:terminal-yellow{{ end }}', '{{ if gt .Behind 0 }}p:celeste-blue{{ end }}']
[blocks.segments.properties]
branch_icon = ' '
cache_duration = 'none'
fetch_status = true
[[blocks.segments]]
template = ' '
foreground = 'p:terminal-red'
type = 'status'
style = 'plain'
[blocks.segments.properties]
cache_duration = 'none'
fetch_stash_count = true
fetch_upstream_icon = true
[[blocks]]
type = 'prompt'
alignment = 'right'
overflow = 'hide'
[[blocks.segments]]
template = ' {{ .Full }} '
foreground = 'p:pistachio-green'
type = 'node'
style = 'plain'
[blocks.segments.properties]
cache_duration = 'none'
[[blocks.segments]]
template = ' {{ .Full }} '
foreground = 'p:terminal-blue'
type = 'php'
style = 'plain'
[blocks.segments.properties]
cache_duration = 'none'
[[blocks.segments]]
template = ' {{ .Full }}'
foreground = 'p:terminal-yellow'
type = 'python'
style = 'plain'
[blocks.segments.properties]
cache_duration = 'none'
[[blocks.segments]]
template = ' {{ .Full }}'
foreground = 'p:terminal-magenta'
type = 'julia'
style = 'plain'
[blocks.segments.properties]
cache_duration = 'none'
[[blocks.segments]]
template = ' {{ .Full}}'
foreground = 'p:terminal-red'
type = 'ruby'
style = 'plain'
[blocks.segments.properties]
cache_duration = 'none'
[[blocks.segments]]
template = 'ﳑ {{ .Full}}'
foreground = 'p:light-sky-blue'
type = 'go'
style = 'plain'
[blocks.segments.properties]
cache_duration = 'none'
[[blocks.segments]]
foreground = 'p:white-blue'
type = 'command'
style = 'plain'
[blocks.segments.properties]
cache_duration = 'none'
command = 'git log --pretty=format:%cr -1 || date +%H:%M:%S'
shell = 'bash'
[[blocks]]
type = 'prompt'
alignment = 'left'
newline = true
[[blocks.segments]]
template = ''
type = 'text'
style = 'plain'
foreground_templates = ['{{if gt .Code 0}}p:terminal-red{{end}}', '{{if eq .Code 0}}p:pistachio-green{{end}}']
newline = true
[blocks.segments.properties]
cache_duration = 'none'