193 lines
5.2 KiB
TOML
193 lines
5.2 KiB
TOML
|
||
"$schema" = "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json"
|
||
version = 3
|
||
|
||
[[blocks]]
|
||
alignment = "left"
|
||
type = "prompt"
|
||
|
||
[[blocks.segments]]
|
||
style = "plain"
|
||
template = "╭─[<#ffff55>{{ .UserName }}</><#ff5555>@</><#55ff55>{{ .HostName }}</>]─"
|
||
type = "session"
|
||
|
||
[[blocks.segments]]
|
||
foreground = "#ff5555"
|
||
style = "plain"
|
||
template = "<#ffffff>[</>{{ .Path }}<#ffffff>]</>"
|
||
type = "path"
|
||
|
||
[[blocks.segments]]
|
||
foreground = "#FF9248"
|
||
style = "plain"
|
||
template = "<#ffffff>─(</>#<#ffffff>)</>"
|
||
type = "root"
|
||
|
||
[[blocks]]
|
||
alignment = "right"
|
||
type = "prompt"
|
||
|
||
[[blocks.segments]]
|
||
foreground = "#3C873A"
|
||
style = "plain"
|
||
template = "<#ffffff>(</>{{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}<#ffffff>)</>"
|
||
type = "node"
|
||
|
||
[blocks.segments.properties]
|
||
fetch_package_manager = true
|
||
npm_icon = " <#cc3a3a></> "
|
||
yarn_icon = " <#348cba></>"
|
||
|
||
[[blocks.segments]]
|
||
foreground = "#FFE873"
|
||
style = "plain"
|
||
template = "<#ffffff>(</>{{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}<#ffffff>)</>"
|
||
type = "python"
|
||
|
||
[[blocks.segments]]
|
||
foreground = "#ec2729"
|
||
style = "plain"
|
||
template = "<#ffffff>(</>{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)</>"
|
||
type = "java"
|
||
|
||
[[blocks.segments]]
|
||
foreground = "#0d6da8"
|
||
style = "plain"
|
||
template = "<#ffffff>(</>{{ if .Unsupported }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)</>"
|
||
type = "dotnet"
|
||
|
||
[[blocks.segments]]
|
||
foreground = "#06aad5"
|
||
style = "plain"
|
||
template = "<#ffffff>(</>{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)</>"
|
||
type = "go"
|
||
|
||
[[blocks.segments]]
|
||
foreground = "#925837"
|
||
style = "plain"
|
||
template = "<#ffffff>(</>{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)</>"
|
||
type = "rust"
|
||
|
||
[[blocks.segments]]
|
||
foreground = "#055b9c"
|
||
style = "plain"
|
||
template = "<#ffffff>(</>{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)</>"
|
||
type = "dart"
|
||
|
||
[[blocks.segments]]
|
||
foreground = "#ce092f"
|
||
style = "plain"
|
||
template = "<#ffffff>(</>{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)</>"
|
||
type = "angular"
|
||
|
||
[[blocks.segments]]
|
||
foreground = "#ffffff"
|
||
style = "plain"
|
||
template = "<#1e293b>(</>{{ if .Error }}{{ .Error }}{{ else }}Nx {{ .Full }}{{ end }}<#1e293b>)</>"
|
||
type = "nx"
|
||
|
||
[[blocks.segments]]
|
||
foreground = "#359a25"
|
||
style = "plain"
|
||
template = "<#ffffff>(</>{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)</>"
|
||
type = "julia"
|
||
|
||
[[blocks.segments]]
|
||
foreground = "#9c1006"
|
||
style = "plain"
|
||
template = "<#ffffff>(</>{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)</>"
|
||
type = "ruby"
|
||
|
||
[[blocks.segments]]
|
||
foreground = "#5398c2"
|
||
style = "plain"
|
||
template = "<#ffffff>(</>{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)</>"
|
||
type = "azfunc"
|
||
|
||
[[blocks.segments]]
|
||
foreground = "#faa029"
|
||
style = "plain"
|
||
template = "<#ffffff>(</>{{.Profile}}{{if .Region}}@{{.Region}}{{end}}<#ffffff>)</>"
|
||
type = "aws"
|
||
|
||
[[blocks.segments]]
|
||
foreground = "#316ce4"
|
||
style = "plain"
|
||
template = "<#ffffff>(</>{{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}}<#ffffff>)</>"
|
||
type = "kubectl"
|
||
|
||
[[blocks.segments]]
|
||
foreground = "#ffffff"
|
||
style = "plain"
|
||
template = "<#ffffff>(</>{{ if .WSL }}WSL at {{ end }}{{.Icon}}<#ffffff>)─</>"
|
||
type = "os"
|
||
|
||
[blocks.segments.properties]
|
||
linux = "<#ffffff></>"
|
||
macos = "<#ffffff></>"
|
||
windows = "<#ffffff></>"
|
||
|
||
[[blocks.segments]]
|
||
foreground = "#ffffff"
|
||
foreground_templates = [
|
||
"{{if eq \"Charging\" .State.String}}#40c4ff{{end}}",
|
||
"{{if eq \"Discharging\" .State.String}}#FFFB38{{end}}",
|
||
"{{if eq \"Full\" .State.String}}#33DD2D{{end}}"
|
||
]
|
||
style = "plain"
|
||
template = "<#ffffff>[</>{{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}%<#ffffff>]─</>"
|
||
type = "battery"
|
||
|
||
[blocks.segments.properties]
|
||
charged_icon = " "
|
||
charging_icon = " "
|
||
discharging_icon = " "
|
||
|
||
[[blocks.segments]]
|
||
foreground = "#55ffff"
|
||
style = "plain"
|
||
template = "<#ffffff>[</>{{ .CurrentDate | date .Format }}<#ffffff>]</>"
|
||
type = "time"
|
||
|
||
[blocks.segments.properties]
|
||
time_format = "_2,15:04"
|
||
|
||
[[blocks]]
|
||
alignment = "left"
|
||
newline = true
|
||
type = "prompt"
|
||
|
||
[[blocks.segments]]
|
||
style = "plain"
|
||
template = "╰─"
|
||
type = "text"
|
||
|
||
[[blocks.segments]]
|
||
foreground = "#e0f8ff"
|
||
style = "plain"
|
||
template = "<#ffffff>[</>{{ .HEAD }}{{ if .Staging.Changed }}<#00AA00> ● {{ .Staging.String }}</>{{ end }}{{ if .Working.Changed }}<#D75F00> ● {{ .Working.String }}</>{{ end }}<#ffffff>]-</>"
|
||
type = "git"
|
||
|
||
[blocks.segments.properties]
|
||
branch_icon = " "
|
||
fetch_status = true
|
||
fetch_upstream_icon = true
|
||
|
||
[[blocks.segments]]
|
||
foreground = "#ecf7fa"
|
||
foreground_templates = [ "{{ if gt .Code 0 }}#ef5350{{ end }}" ]
|
||
style = "plain"
|
||
template = " "
|
||
type = "status"
|
||
|
||
[blocks.segments.properties]
|
||
always_enabled = true
|
||
|
||
[transient_prompt]
|
||
foreground_templates = [
|
||
"{{if gt .Code 0}}red{{end}}",
|
||
"{{if eq .Code 0}}green{{end}}",
|
||
]
|
||
background = 'transparent'
|
||
template = '❯ '
|
||
always_enabled = true
|