oh-my-posh/power10k_edit.toml
2025-03-21 21:32:54 +01:00

256 lines
6.9 KiB
TOML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"$schema" = "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json"
console_title_template = "{{ .Shell }} in {{ .Folder }} :: {{if .Root}}Admin{{end}}"
# console_title_template = ' {{ .Folder }} :: {{if .Root}}Admin{{end}}'
final_space = true
version = 3
[transient_prompt]
template = ' '
background = 'transparent'
newline = true
foreground_templates = ['{{if gt .Code 0}}red{{end}}', '{{if eq .Code 0}}#629a55{{end}}']
[[blocks]]
alignment = "left"
newline = true
type = "prompt"
[[blocks.segments]]
background = "#2e2e4e" # Muted indigo blue
foreground = "#e4e4e4"
leading_diamond = "╭─"
style = "diamond"
type = "session"
template = '{{ .UserName }}{{if .SSHSession }}@{{ .HostName }}{{ end }}'
# foreground_templates = ['{{if .SSHSession }}#e4e4e4{{end}}']
background_templates = ['{{if .SSHSession }}#522a27{{end}}']
# template = " {{ if .WSL }}WSL󰁥 {{ end }}{{.Icon}} "
# type = "os"
[[blocks.segments]]
background = "#4b3d7d" # Deep muted indigo/violet
foreground = "#e4e4e4"
powerline_symbol = ""
style = "powerline"
template = "  {{ .Path }} "
type = "path"
[blocks.segments.properties]
home_icon = "~"
style = "full"
[[blocks.segments]]
background = "#4b6e55"
background_templates = [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#bcad66{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#e04e29{{ end }}",
"{{ if gt .Ahead 0 }}#9ac4f8{{ end }}",
"{{ if gt .Behind 0 }}#629a55{{ end }}"
]
foreground = "#000000"
powerline_symbol = ""
style = "powerline"
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 }} "
type = "git"
[blocks.segments.properties]
branch_icon = " "
fetch_stash_count = true
fetch_status = true
fetch_upstream_icon = true
[[blocks]]
alignment = "right"
type = "prompt"
[[blocks.segments]]
background = "#6b9c68" # Muted green shade
foreground = "#ffffff"
invert_powerline = true
powerline_symbol = ""
style = "powerline"
template = " {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}  "
type = "node"
[blocks.segments.properties]
fetch_version = true
[[blocks.segments]]
background = "#68a1b3" # Muted blue-green for Go
foreground = "#111111"
invert_powerline = true
powerline_symbol = ""
style = "powerline"
template = " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}  "
type = "go"
[blocks.segments.properties]
fetch_version = true
[[blocks.segments]]
background = "#6e5cd2" # Muted indigo/violet for Julia
foreground = "#111111"
invert_powerline = true
powerline_symbol = ""
style = "powerline"
template = " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}  "
type = "julia"
[blocks.segments.properties]
fetch_version = true
[[blocks.segments]]
background = "#e3b800" # Golden yellow
foreground = "#111111"
invert_powerline = true
powerline_symbol = ""
style = "powerline"
template = " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}  "
type = "python"
[blocks.segments.properties]
display_mode = "files"
fetch_virtual_env = false
[[blocks.segments]]
background = "#8f2c1b" # Muted ruby red
foreground = "#ffffff"
invert_powerline = true
powerline_symbol = ""
style = "powerline"
template = " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}  "
type = "ruby"
[blocks.segments.properties]
display_mode = "files"
fetch_version = true
[[blocks.segments]]
background = "#ff9e3a" # Muted amber for azfunc
foreground = "#ffffff"
invert_powerline = true
powerline_symbol = ""
style = "powerline"
template = " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} "
type = "azfunc"
[blocks.segments.properties]
display_mode = "files"
fetch_version = false
[[blocks.segments]]
background_templates = [
"{{if contains \"default\" .Profile}}#7a9ba0{{end}}",
"{{if contains \"jan\" .Profile}}#f1184c{{end}}"
]
foreground = "#ffffff"
invert_powerline = true
powerline_symbol = ""
style = "powerline"
template = " {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }}  "
type = "aws"
[blocks.segments.properties]
display_default = false
[[blocks.segments]]
background = "#ffff66"
foreground = "#111111"
invert_powerline = true
powerline_symbol = ""
style = "powerline"
template = "  "
type = "root"
[[blocks.segments]]
background = "#c4a000"
foreground = "#000000"
invert_powerline = true
powerline_symbol = ""
style = "powerline"
template = " {{ .FormattedMs }}  "
type = "executiontime"
[[blocks.segments]]
background = "#000000"
background_templates = [ "{{ if gt .Code 0 }}#e04e29{{ end }}" ]
foreground_templates = [ "{{ if gt .Code 0 }}#0a0a0a{{ end }}" ]
foreground = "#629a55"
invert_powerline = true
powerline_symbol = ""
style = "powerline"
template = " {{ if gt .Code 0 }}{{ reason .Code }}{{ else }}󰡕 {{ end }} "
type = "status"
[blocks.segments.properties]
always_enabled = true
# [[blocks.segments]]
# template = '{{ .UserName }}'
# foreground = '#629a55'
# # invert_powerline = false
# # powerline_symbol = ""
# type = 'session'
# style = 'powerline'
# foreground_templates = ['{{if .SSHSession }}#e04e29{{end}}']
#
# [blocks.segments.properties]
# cache_duration = 'none'
#
# [[blocks.segments]]
# template = '@'
# foreground = '#629a55'
# type = 'session'
# foreground_templates = ['{{if .SSHSession }}#e04e29{{end}}']
#
# [blocks.segments.properties]
# cache_duration = 'none'
#
# [[blocks.segments]]
# template = '{{ .HostName }}'
# foreground = '#629a55'
# type = 'session'
# style = 'powerline'
# foreground_templates = ['{{if .SSHSession }}#e04e29{{end}}']
#
# [blocks.segments.properties]
# cache_duration = 'none'
# [[blocks.segments]]
# invert_powerline = true
# style = "diamond"
# trailing_diamond = "─╮"
# foreground_templates = ['{{if .SSHSession }}#e04e29{{end}}']
[[blocks.segments]]
background = "#522a27"
foreground = "#000000"
invert_powerline = true
style = "diamond"
template = " {{ .CurrentDate | date .Format }}  "
trailing_diamond = "─╮"
type = "time"
[[blocks]]
alignment = "left"
newline = true
type = "prompt"
[[blocks.segments]]
foreground = "#2e2e4e"
style = "plain"
template = "╰─"
type = "session"
foreground_templates = ['{{if .SSHSession }}#522a27{{end}}']
[[blocks]]
type = "rprompt"
[[blocks.segments]]
foreground = "#522a27"
style = "plain"
template = "─╯"
type = "text"