From 2f2e83d1969ace629e766357f07b7e4fb5fd3f21 Mon Sep 17 00:00:00 2001 From: pika Date: Sun, 25 May 2025 22:43:11 +0200 Subject: [PATCH] wip --- clean-info.toml | 100 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 clean-info.toml diff --git a/clean-info.toml b/clean-info.toml new file mode 100644 index 0000000..4fd6613 --- /dev/null +++ b/clean-info.toml @@ -0,0 +1,100 @@ +"$schema" = "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json" +final_space = true +version = 3 + +[[blocks]] +alignment = "left" +newline = true +type = "prompt" + + [[blocks.segments]] + foreground = "#fc71a7" + style = "plain" + template = "[{{ .CurrentDate | date .Format }}]" + type = "time" + + [blocks.segments.properties] + time_format = "15:04" + + [[blocks.segments]] + type = "shell" + style = "plain" + foreground = "#6c5dbe" + template = "  {{ .Name }}" + +[blocks.segments.properties.mapped_shell_names] +pwsh = "Shell" +powershell = "Shell" +cmd = "Cmd" +bash = "Bash" + + [[blocks.segments]] + foreground = "#b5daa4" + foreground_templates = [ + "{{ if or (.Working.Changed) (.Staging.Changed) }}#f7c5a1{{ end }}", + "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#d04a39{{ end }}", + "{{ if gt .Ahead 0 }}#B388FF{{ end }}", + "{{ if gt .Behind 0 }}#B388FF{{ end }}" +] + style = "plain" + 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_template = "{{ trunc 25 .Branch }}" + fetch_stash_count = true + fetch_status = true + fetch_upstream_icon = true + +[[blocks]] +alignment = "right" +type = "prompt" + + [[blocks.segments]] + type = "status" + style = "plain" + foreground = "#b8ff75" + foreground_templates = [ "{{ if gt .Code 0 }}#E06C75{{ end }}" ] + template = " x{{ reason .Code }}" + + [[blocks.segments]] + foreground = "#b8ff75" + foreground_templates = [ "{{ if gt .Code 0 }}#E06C75{{ end }}" ] + style = "diamond" + template = " {{ .FormattedMs }} " + type = "executiontime" + + [blocks.segments.properties] + style = "roundrock" + always_enabled = true + +[[blocks]] +alignment = "left" +newline = true +type = "prompt" + + [[blocks.segments]] + foreground = "#fcadc4" + style = "plain" + template = " {{ .Path }}" + type = "path" + + [blocks.segments.properties] + style = "full" + +[[blocks]] +alignment = "left" +newline = true +type = "prompt" + + [[blocks.segments]] + foreground = "#E06C75" + style = "plain" + template = "!" + type = "root" + + [[blocks.segments]] + foreground = "#6c5dbe" + style = "plain" + template = "❯" + type = "text"