From cd9945a4e6cb5056b3dcbb720b0d9edf41435981 Mon Sep 17 00:00:00 2001 From: Alexander Pieck Date: Wed, 19 Mar 2025 13:03:33 +0000 Subject: [PATCH] Add power10k_edit.toml --- power10k_edit.toml | 202 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 202 insertions(+) create mode 100644 power10k_edit.toml diff --git a/power10k_edit.toml b/power10k_edit.toml new file mode 100644 index 0000000..0c948e3 --- /dev/null +++ b/power10k_edit.toml @@ -0,0 +1,202 @@ +"$schema" = "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json" +console_title_template = "{{ .Shell }} in {{ .Folder }}" +final_space = true +version = 3 + +[[blocks]] +alignment = "left" +type = "prompt" + + [[blocks.segments]] + background = "#2e2e4e" # Muted indigo blue + foreground = "#e8e8e8" + leading_diamond = "╭─" + style = "diamond" + 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 = "#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]] + 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 = "text" + +[[blocks]] +type = "rprompt" + + [[blocks.segments]] + foreground = "#522a27" + style = "plain" + template = "─╯" + type = "text"