From ee3b1127dec3abd9edbc4c8aceea38000e7fcd10 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Sun, 27 Mar 2022 10:12:47 +0200 Subject: [PATCH] feat: move template to segment --- docs/docs/config-example.md | 20 +- docs/docs/config-tooltips.mdx | 4 +- docs/docs/segment-angular.md | 4 +- docs/docs/segment-aws.md | 4 +- docs/docs/segment-az.md | 4 +- docs/docs/segment-azfunc.md | 2 +- docs/docs/segment-battery.md | 4 +- docs/docs/segment-cds.md | 4 +- docs/docs/segment-cf.md | 4 +- docs/docs/segment-cftarget.md | 4 +- docs/docs/segment-crystal.md | 4 +- docs/docs/segment-dart.md | 4 +- docs/docs/segment-dotnet.md | 4 +- docs/docs/segment-executiontime.md | 4 +- docs/docs/segment-exit.md | 4 +- docs/docs/segment-git.mdx | 4 +- docs/docs/segment-golang.md | 4 +- docs/docs/segment-haskell.md | 4 +- docs/docs/segment-ipify.md | 2 +- docs/docs/segment-java.md | 4 +- docs/docs/segment-julia.md | 4 +- docs/docs/segment-kotlin.md | 4 +- docs/docs/segment-kubectl.md | 4 +- docs/docs/segment-nbgv.mdx | 4 +- docs/docs/segment-nightscout.md | 4 +- docs/docs/segment-node.md | 4 +- docs/docs/segment-npm.md | 4 +- docs/docs/segment-os.md | 2 +- docs/docs/segment-owm.md | 4 +- docs/docs/segment-php.md | 4 +- docs/docs/segment-plastic.md | 4 +- docs/docs/segment-project.md | 4 +- docs/docs/segment-python.md | 4 +- docs/docs/segment-r.md | 4 +- docs/docs/segment-root.md | 4 +- docs/docs/segment-ruby.md | 4 +- docs/docs/segment-rust.md | 4 +- docs/docs/segment-session.md | 4 +- docs/docs/segment-strava.mdx | 4 +- docs/docs/segment-swift.md | 4 +- docs/docs/segment-sysinfo.md | 4 +- docs/docs/segment-terraform.md | 4 +- docs/docs/segment-text.md | 4 +- docs/docs/segment-ui5tooling.md | 4 +- docs/docs/segment-wifi.md | 4 +- docs/docs/segment-winreg.md | 4 +- src/engine/config.go | 12 +- src/engine/migrate.go | 56 ++++-- src/engine/migrate_test.go | 63 ++++-- src/engine/segment.go | 7 +- src/properties/properties.go | 2 - src/segments/text_test.go | 4 - themes/M365Princess.omp.json | 20 +- themes/agnoster.omp.json | 26 +-- themes/agnosterplus.omp.json | 16 +- themes/aliens.omp.json | 18 +- themes/amro.omp.json | 22 +-- themes/atomic.omp.json | 86 +++------ themes/atomicBit.omp.json | 84 +++----- themes/avit.omp.json | 22 +-- themes/blue-owl.omp.json | 34 ++-- themes/blueish.omp.json | 42 ++-- themes/bubbles.omp.json | 48 +++-- themes/bubblesextra.omp.json | 44 ++--- themes/bubblesline.omp.json | 42 ++-- themes/capr4n.omp.json | 22 +-- themes/cert.omp.json | 16 +- themes/cinnamon.omp.json | 20 +- themes/clean-detailed.omp.json | 40 ++-- themes/cloud-native-azure.omp.json | 42 ++-- themes/craver.omp.json | 34 ++-- themes/darkblood.omp.json | 22 +-- themes/default.omp.json | 82 ++++---- themes/di4am0nd.omp.json | 28 ++- themes/emodipt.omp.json | 24 +-- themes/festivetech.omp.json | 24 +-- themes/fish.omp.json | 26 +-- themes/free-ukraine.omp.json | 80 +++----- themes/gmay.omp.json | 36 ++-- themes/grandpa-style.omp.json | 38 ++-- themes/half-life.omp.json | 22 +-- themes/honukai.omp.json | 34 +--- themes/hotstick.minimal.omp.json | 14 +- themes/hunk.omp.json | 45 ++--- themes/huvix.omp.json | 28 ++- themes/if_tea.omp.json | 40 ++-- themes/iterm2.omp.json | 40 ++-- themes/jandedobbeleer.omp.json | 70 +++---- themes/jblab_2021.omp.json | 26 +-- themes/jonnychipz.omp.json | 42 ++-- themes/jtracey93.omp.json | 18 +- themes/jv_sitecorian.omp.json | 53 ++--- themes/kali.omp.json | 30 ++- themes/lambda.omp.json | 14 +- themes/larserikfinholt.omp.json | 26 ++- themes/marcduiker.omp.json | 14 +- themes/markbull.omp.json | 36 ++-- themes/material.omp.json | 20 +- themes/microverse-power.omp.json | 32 ++-- themes/mojada.omp.json | 38 ++-- themes/montys.omp.json | 41 ++-- themes/mt.omp.json | 20 +- themes/negligible.omp.json | 42 ++-- themes/night-owl.omp.json | 92 +++------ themes/nordtron.omp.json | 34 ++-- themes/nu4a.omp.json | 30 ++- themes/paradox.omp.json | 30 +-- themes/pararussel.omp.json | 26 +-- themes/patriksvensson.omp.json | 24 +-- themes/peru.omp.json | 42 ++-- themes/pixelrobots.omp.json | 38 ++-- themes/plague.omp.json | 34 ++-- themes/powerlevel10k_classic.omp.json | 32 ++-- themes/powerlevel10k_lean.omp.json | 16 +- themes/powerlevel10k_modern.omp.json | 32 ++-- themes/powerlevel10k_rainbow.omp.json | 66 +++---- themes/powerline.omp.json | 26 +-- themes/pure.omp.json | 22 +-- themes/remk.omp.json | 16 +- themes/robbyrussel.omp.json | 18 +- themes/rudolfs-dark.omp.json | 26 +-- themes/rudolfs-light.omp.json | 26 +-- themes/schema.json | 15 +- themes/slim.omp.json | 54 ++---- themes/slimfat.omp.json | 54 ++---- themes/smoothie.omp.json | 30 ++- themes/sonicboom_dark.omp.json | 28 ++- themes/sonicboom_light.omp.json | 28 ++- themes/sorin.omp.json | 30 +-- themes/space.omp.json | 46 ++--- themes/spaceship.omp.json | 18 +- themes/star.omp.json | 26 +-- themes/stelbent.minimal.omp.json | 40 ++-- themes/takuya.omp.json | 32 ++-- themes/the-unnamed.omp.json | 34 ++-- themes/thecyberden.omp.json | 210 ++++++++++---------- themes/tiwahu.omp.json | 266 +++++++++++++------------- themes/tonybaloney.omp.json | 18 +- themes/unicorn.omp.json | 28 ++- themes/velvet.omp.json | 42 ++-- themes/wopian.omp.json | 36 ++-- themes/xtoys.omp.json | 22 +-- themes/ys.omp.json | 38 ++-- themes/zash.omp.json | 22 +-- 144 files changed, 1537 insertions(+), 2331 deletions(-) diff --git a/docs/docs/config-example.md b/docs/docs/config-example.md index 372cce49..9f13dc8c 100644 --- a/docs/docs/config-example.md +++ b/docs/docs/config-example.md @@ -13,8 +13,8 @@ sidebar_label: Sample "segments": [ { "foreground": "#007ACC", + "template": " {{ .CurrentDate | date .Format }} ", "properties": { - "template": " {{ .CurrentDate | date .Format }} ", "time_format": "15:04:05" }, "style": "plain", @@ -32,9 +32,7 @@ sidebar_label: Sample "background": "#ffb300", "foreground": "#ffffff", "leading_diamond": "\ue0b6", - "properties": { - "template": " {{ .UserName }} " - }, + "template": " {{ .UserName }} ", "style": "diamond", "trailing_diamond": "\ue0b0", "type": "session" @@ -43,12 +41,12 @@ sidebar_label: Sample "background": "#61AFEF", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", + "template": " {{ .Path }} ", "properties": { "exclude_folders": [ "/super/secret/project" ], - "style": "folder", - "template": " {{ .Path }} " + "style": "folder" }, "style": "powerline", "type": "path" @@ -66,10 +64,10 @@ sidebar_label: Sample "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ffffff{{ end }}" ], "powerline_symbol": "\ue0b0", + "template": " {{ .HEAD }}{{ .BranchStatus }} ", "properties": { "branch_max_length": 25, - "fetch_status": true, - "template": " {{ .HEAD }}{{ .BranchStatus }} " + "fetch_status": true }, "style": "powerline", "type": "git" @@ -80,9 +78,9 @@ sidebar_label: Sample "{{ if gt .Code 0 }}#e91e63{{ end }}" ], "foreground": "#ffffff", + "template": "\ue0b0 \ue23a ", "properties": { - "always_enabled": true, - "template": "\ue0b0 \ue23a " + "always_enabled": true }, "style": "diamond", "trailing_diamond": "\ue0b4", @@ -93,6 +91,6 @@ sidebar_label: Sample } ], "final_space": true, - "version": 1 + "version": 2 } ``` diff --git a/docs/docs/config-tooltips.mdx b/docs/docs/config-tooltips.mdx index cb357df1..03ded2e9 100644 --- a/docs/docs/config-tooltips.mdx +++ b/docs/docs/config-tooltips.mdx @@ -39,10 +39,10 @@ You need to extend or create a custom theme with your tooltips. For example: "background": "#fffb38", "leading_diamond": "", "trailing_diamond": "", + "template": "{{ .HEAD }}{{ if .Staging.Changed }} \uF046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uF044 {{ .Working.String }}{{ end }}", "properties": { "fetch_status": true, - "fetch_upstream_icon": true, - "template": "{{ .HEAD }}{{ if .Staging.Changed }} \uF046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uF044 {{ .Working.String }}{{ end }}" + "fetch_upstream_icon": true } } ] diff --git a/docs/docs/segment-angular.md b/docs/docs/segment-angular.md index 94e952b5..8ea3130e 100644 --- a/docs/docs/segment-angular.md +++ b/docs/docs/segment-angular.md @@ -17,9 +17,7 @@ Display the currently active Angular CLI version. "powerline_symbol": "\uE0B0", "foreground": "#000000", "background": "#1976d2", - "properties": { - "template": " \uE753 {{ .Full }} " - } + "template": " \uE753 {{ .Full }} " } ``` diff --git a/docs/docs/segment-aws.md b/docs/docs/segment-aws.md index 541fd9f6..0df91516 100644 --- a/docs/docs/segment-aws.md +++ b/docs/docs/segment-aws.md @@ -17,9 +17,7 @@ Display the currently active AWS profile and region. "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#FFA400", - "properties": { - "template": " \uE7AD {{.Profile}}{{if .Region}}@{{.Region}}{{end}}" - } + "template": " \uE7AD {{.Profile}}{{if .Region}}@{{.Region}}{{end}}" } ``` diff --git a/docs/docs/segment-az.md b/docs/docs/segment-az.md index 136fb7a2..77ce338c 100644 --- a/docs/docs/segment-az.md +++ b/docs/docs/segment-az.md @@ -17,9 +17,7 @@ Display the currently active Azure subscription information. "powerline_symbol": "\uE0B0", "foreground": "#000000", "background": "#9ec3f0", - "properties": { - "template": " \uFD03 {{ .EnvironmentName }}" - } + "template": " \uFD03 {{ .EnvironmentName }}" } ``` diff --git a/docs/docs/segment-azfunc.md b/docs/docs/segment-azfunc.md index 3992e80f..01f9a651 100644 --- a/docs/docs/segment-azfunc.md +++ b/docs/docs/segment-azfunc.md @@ -17,8 +17,8 @@ Display the currently active Azure functions CLI version. "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#FEAC19", + "template": " \uf0e7 {{ .Full }} ", "properties": { - "template": " \uf0e7 {{ .Full }} ", "fetch_version": true, "display_mode": "files" } diff --git a/docs/docs/segment-battery.md b/docs/docs/segment-battery.md index 1d772a30..43024775 100644 --- a/docs/docs/segment-battery.md +++ b/docs/docs/segment-battery.md @@ -26,11 +26,11 @@ Battery displays the remaining power percentage for your battery. "{{if eq \"Discharging\" .State.String}}#ff5722{{end}}", "{{if eq \"Full\" .State.String}}#4caf50{{end}}" ], + "template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}\uF295 ", "properties": { "discharging_icon": "\uE231 ", "charging_icon": "\uE234 ", - "charged_icon": "\uE22F ", - "template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}\uF295 " + "charged_icon": "\uE22F " } } ``` diff --git a/docs/docs/segment-cds.md b/docs/docs/segment-cds.md index fc1db967..6f5c97db 100644 --- a/docs/docs/segment-cds.md +++ b/docs/docs/segment-cds.md @@ -15,9 +15,7 @@ Display the active [CDS CLI][sap-cap-cds] version. "background": "#a7cae1", "foreground": "#100e23", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \ue311 cds {{ .Full }} " - }, + "template": " \ue311 cds {{ .Full }} ", "style": "powerline", "type": "cds" } diff --git a/docs/docs/segment-cf.md b/docs/docs/segment-cf.md index e2936e6d..66cf6873 100644 --- a/docs/docs/segment-cf.md +++ b/docs/docs/segment-cf.md @@ -15,9 +15,7 @@ Display the active [Cloud Foundry CLI][cloud-foundry] version. "background": "#a7cae1", "foreground": "#100e23", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \uf40a cf {{ .Full }} " - }, + "template": " \uf40a cf {{ .Full }} ", "style": "powerline", "type": "cf" } diff --git a/docs/docs/segment-cftarget.md b/docs/docs/segment-cftarget.md index 38fcf350..0d31ce01 100644 --- a/docs/docs/segment-cftarget.md +++ b/docs/docs/segment-cftarget.md @@ -15,9 +15,7 @@ Display the details of the logged [Cloud Foundry endpoint][cf-target] (`cf targe "background": "#a7cae1", "foreground": "#100e23", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \uf40a {{ .Org }}/{{ .Space }} " - }, + "template": " \uf40a {{ .Org }}/{{ .Space }} ", "style": "powerline", "type": "cftarget" } diff --git a/docs/docs/segment-crystal.md b/docs/docs/segment-crystal.md index f986c6d5..48bbd403 100644 --- a/docs/docs/segment-crystal.md +++ b/docs/docs/segment-crystal.md @@ -17,9 +17,7 @@ Display the currently active crystal version. "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#4063D8", - "properties": { - "template": " \uE370 {{ .Full }} " - } + "template": " \uE370 {{ .Full }} " } ``` diff --git a/docs/docs/segment-dart.md b/docs/docs/segment-dart.md index d08d0403..ebc981e7 100644 --- a/docs/docs/segment-dart.md +++ b/docs/docs/segment-dart.md @@ -17,9 +17,7 @@ Display the currently active dart version. "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#06A4CE", - "properties": { - "template": " \uE798 {{ .Full }} " - } + "template": " \uE798 {{ .Full }} " } ``` diff --git a/docs/docs/segment-dotnet.md b/docs/docs/segment-dotnet.md index e6908f54..a83aeec7 100644 --- a/docs/docs/segment-dotnet.md +++ b/docs/docs/segment-dotnet.md @@ -17,9 +17,7 @@ Display the currently active .NET SDK version. "powerline_symbol": "\uE0B0", "foreground": "#000000", "background": "#00ffff", - "properties": { - "template": " \uE77F {{ .Full }} " - } + "template": " \uE77F {{ .Full }} " } ``` diff --git a/docs/docs/segment-executiontime.md b/docs/docs/segment-executiontime.md index 1e2141ff..5d491d21 100644 --- a/docs/docs/segment-executiontime.md +++ b/docs/docs/segment-executiontime.md @@ -21,10 +21,10 @@ The installation guide shows how to include this argument for PowerShell and Zsh "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#8800dd", + "template": " <#fefefe>\ufbab ", "properties": { "threshold": 500, - "style": "austin", - "template": " <#fefefe>\ufbab " + "style": "austin" } } ``` diff --git a/docs/docs/segment-exit.md b/docs/docs/segment-exit.md index 21fd322c..9924feae 100644 --- a/docs/docs/segment-exit.md +++ b/docs/docs/segment-exit.md @@ -21,9 +21,9 @@ Displays the last exit code or that the last command failed based on the configu ], "leading_diamond": "", "trailing_diamond": "\uE0B4", + "template": "<#193549>\uE0B0 \uE23A ", "properties": { - "always_enabled": true, - "template": "<#193549>\uE0B0 \uE23A " + "always_enabled": true } } ``` diff --git a/docs/docs/segment-git.mdx b/docs/docs/segment-git.mdx index 97d812cc..5241d7c1 100644 --- a/docs/docs/segment-git.mdx +++ b/docs/docs/segment-git.mdx @@ -42,11 +42,11 @@ An alternative is to use the [Posh-Git segment][poshgit] "{{ if gt .Ahead 0 }}#B388FF{{ end }}", "{{ if gt .Behind 0 }}#B388FB{{ end }}" ], + "template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uF044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uF046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uF692 {{ .StashCount }}{{ end }}", "properties": { "fetch_status": true, "fetch_stash_count": true, - "fetch_upstream_icon": true, - "template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uF044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uF046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uF692 {{ .StashCount }}{{ end }}" + "fetch_upstream_icon": true } } ``` diff --git a/docs/docs/segment-golang.md b/docs/docs/segment-golang.md index 3718c59a..5d935d56 100644 --- a/docs/docs/segment-golang.md +++ b/docs/docs/segment-golang.md @@ -17,9 +17,7 @@ Display the currently active golang version. "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#7FD5EA", - "properties": { - "template": " \uFCD1 {{ .Full }} " - } + "template": " \uFCD1 {{ .Full }} " } ``` diff --git a/docs/docs/segment-haskell.md b/docs/docs/segment-haskell.md index a9a566fe..d57bd91b 100644 --- a/docs/docs/segment-haskell.md +++ b/docs/docs/segment-haskell.md @@ -17,9 +17,7 @@ Display the currently active Glasgow Haskell Compiler (GHC) version. "powerline_symbol": "\uE0B0", "foreground": "#906cff", "background": "#100e23", - "properties": { - "template": " \ue61f {{ .Full }}" - } + "template": " \ue61f {{ .Full }}" } ``` diff --git a/docs/docs/segment-ipify.md b/docs/docs/segment-ipify.md index b92a802d..8299b4cc 100644 --- a/docs/docs/segment-ipify.md +++ b/docs/docs/segment-ipify.md @@ -18,8 +18,8 @@ sidebar_label: Ipify "background": "#c386f1", "leading_diamond": "", "trailing_diamond": "\uE0B0", + "template": "{{ .IP }}", "properties": { - "template": "{{ .IP }}", "cache_timeout": 5, "http_timeout": 1000 } diff --git a/docs/docs/segment-java.md b/docs/docs/segment-java.md index f8a203d1..0fdcd9a9 100644 --- a/docs/docs/segment-java.md +++ b/docs/docs/segment-java.md @@ -17,9 +17,7 @@ Display the currently active java version. "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#4063D8", - "properties": { - "template": " \uE738 {{ .Full }}" - } + "template": " \uE738 {{ .Full }}" } ``` diff --git a/docs/docs/segment-julia.md b/docs/docs/segment-julia.md index 3564b6f6..516a3659 100644 --- a/docs/docs/segment-julia.md +++ b/docs/docs/segment-julia.md @@ -17,9 +17,7 @@ Display the currently active julia version. "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#4063D8", - "properties": { - "template": " \uE624 {{ .Full }} " - } + "template": " \uE624 {{ .Full }} " } ``` diff --git a/docs/docs/segment-kotlin.md b/docs/docs/segment-kotlin.md index 4bc2bd76..5a66923a 100644 --- a/docs/docs/segment-kotlin.md +++ b/docs/docs/segment-kotlin.md @@ -17,9 +17,7 @@ Display the currently active [Kotlin][kotlin] version. "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#906cff", - "properties": { - "template": " \ufa05 {{ .Full }} " - } + "template": " \ufa05 {{ .Full }} " } ``` diff --git a/docs/docs/segment-kubectl.md b/docs/docs/segment-kubectl.md index dd708008..718450e0 100644 --- a/docs/docs/segment-kubectl.md +++ b/docs/docs/segment-kubectl.md @@ -17,9 +17,7 @@ Display the currently active Kubernetes context name and namespace name. "powerline_symbol": "\uE0B0", "foreground": "#000000", "background": "#ebcc34", - "properties": { - "template": " \uFD31 {{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}} " - } + "template": " \uFD31 {{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}} " } ``` diff --git a/docs/docs/segment-nbgv.mdx b/docs/docs/segment-nbgv.mdx index 5065247e..cb3aa759 100644 --- a/docs/docs/segment-nbgv.mdx +++ b/docs/docs/segment-nbgv.mdx @@ -21,9 +21,7 @@ The Nerdbank.GitVersioning CLI can be a bit slow causing the prompt to feel slow "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#3a579a", - "properties": { - "template": " \uF1D2 {{ .Version }} " - } + "template": " \uF1D2 {{ .Version }} " } ``` diff --git a/docs/docs/segment-nightscout.md b/docs/docs/segment-nightscout.md index 88d301a7..872e2f7d 100644 --- a/docs/docs/segment-nightscout.md +++ b/docs/docs/segment-nightscout.md @@ -42,10 +42,10 @@ if that color is visible against any of your backgrounds. "leading_diamond": "", "trailing_diamond": "\uE0B0", + "template": "\ue2a1 {{ .Sgv }}{{ .TrendIcon }}", "properties": { "url": "https://YOURNIGHTSCOUTAPP.herokuapp.com/api/v1/entries.json?count=1&token=APITOKENFROMYOURADMIN", - "http_timeout": 1500, - "template": "\ue2a1 {{ .Sgv }}{{ .TrendIcon }}" + "http_timeout": 1500 } } ``` diff --git a/docs/docs/segment-node.md b/docs/docs/segment-node.md index 27bc69d0..4f598f9d 100644 --- a/docs/docs/segment-node.md +++ b/docs/docs/segment-node.md @@ -17,9 +17,7 @@ Display the currently active node version. "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#6CA35E", - "properties": { - "template": " \uE718 {{ .Full }} " - } + "template": " \uE718 {{ .Full }} " } ``` diff --git a/docs/docs/segment-npm.md b/docs/docs/segment-npm.md index a1cb4c73..d35979ef 100644 --- a/docs/docs/segment-npm.md +++ b/docs/docs/segment-npm.md @@ -17,9 +17,7 @@ Display the currently active npm version. "powerline_symbol": "\uE0B0", "foreground": "#193549", "background": "#ffeb3b", - "properties": { - "template": "\ue71e {{ .Full }} " - } + "template": "\ue71e {{ .Full }} " } ``` diff --git a/docs/docs/segment-os.md b/docs/docs/segment-os.md index f437cad5..bc19e5dc 100644 --- a/docs/docs/segment-os.md +++ b/docs/docs/segment-os.md @@ -16,8 +16,8 @@ Display OS specific info - defaults to Icon. "style": "plain", "foreground": "#26C6DA", "background": "#546E7A", + "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}}\uE0B1", "properties": { - "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}}\uE0B1", "macos": "mac" } } diff --git a/docs/docs/segment-owm.md b/docs/docs/segment-owm.md index f3ae3f99..e6e49ccb 100644 --- a/docs/docs/segment-owm.md +++ b/docs/docs/segment-owm.md @@ -23,13 +23,13 @@ The free tier for *Current weather and forecasts collection* is sufficient. "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#FF0000", + "template": "{{.Weather}} ({{.Temperature}}{{.UnitIcon}})", "properties": { "apikey": "", "location": "AMSTERDAM,NL", "units": "metric", "http_timeout": 20, - "cache_timeout": 10, - "template": "{{.Weather}} ({{.Temperature}}{{.UnitIcon}})" + "cache_timeout": 10 } } ``` diff --git a/docs/docs/segment-php.md b/docs/docs/segment-php.md index b6def610..ca521120 100644 --- a/docs/docs/segment-php.md +++ b/docs/docs/segment-php.md @@ -17,9 +17,7 @@ Display the currently active php version. "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#4063D8", - "properties": { - "template": " \ue73d {{ .Full }} ", - } + "template": " \ue73d {{ .Full }} ", } ``` diff --git a/docs/docs/segment-plastic.md b/docs/docs/segment-plastic.md index e2490a8a..056b9df8 100644 --- a/docs/docs/segment-plastic.md +++ b/docs/docs/segment-plastic.md @@ -33,11 +33,11 @@ Local changes can also be displayed which uses the following syntax (see `.Statu "{{ if and .Changed .Behind }}#ff4500{{ end }}", "{{ if .Behind }}#B388FF{{ end }}" ], + "template": "{{ .Selector }}{{ if .Status.Changed }} \uF044 {{ end }}{{ .Status.String }}", "properties": { "fetch_status": true, "branch_max_length": 25, - "truncate_symbol": "\u2026", - "template": "{{ .Selector }}{{ if .Status.Changed }} \uF044 {{ end }}{{ .Status.String }}" + "truncate_symbol": "\u2026" } } ``` diff --git a/docs/docs/segment-project.md b/docs/docs/segment-project.md index 395bf337..e8a12077 100644 --- a/docs/docs/segment-project.md +++ b/docs/docs/segment-project.md @@ -21,9 +21,7 @@ Supports: "powerline_symbol": "\uE0B0", "foreground": "#193549", "background": "#ffeb3b", - "properties": { - "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ if .Version }}\uf487 {{.Version}}{{ end }}{{ end }} " - } + "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ if .Version }}\uf487 {{.Version}}{{ end }}{{ end }} " } ``` diff --git a/docs/docs/segment-python.md b/docs/docs/segment-python.md index 4691e0ac..1693fb8b 100644 --- a/docs/docs/segment-python.md +++ b/docs/docs/segment-python.md @@ -18,9 +18,7 @@ Supports conda, virtualenv and pyenv. "powerline_symbol": "\uE0B0", "foreground": "#100e23", "background": "#906cff", - "properties": { - "template": " \uE235 {{ .Full }} " - } + "template": " \uE235 {{ .Full }} " } ``` diff --git a/docs/docs/segment-r.md b/docs/docs/segment-r.md index ddd90702..aa821a5a 100644 --- a/docs/docs/segment-r.md +++ b/docs/docs/segment-r.md @@ -17,9 +17,7 @@ Display the currently active [R][r-homepage] version. "powerline_symbol": "\uE0B0", "foreground": "blue", "background": "lightWhite", - "properties": { - "template": " R {{ .Full }} " - } + "template": " R {{ .Full }} " } ``` diff --git a/docs/docs/segment-root.md b/docs/docs/segment-root.md index eff6112c..17f6a0d2 100644 --- a/docs/docs/segment-root.md +++ b/docs/docs/segment-root.md @@ -17,9 +17,7 @@ Show when the current user is root or when in an elevated shell (Windows). "powerline_symbol": "\uE0B0", "foreground": "#111111", "background": "#ffff66", - "properties": { - "template": "\uF0E7" - } + "template": "\uF0E7" } ``` diff --git a/docs/docs/segment-ruby.md b/docs/docs/segment-ruby.md index 39045162..f14b6610 100644 --- a/docs/docs/segment-ruby.md +++ b/docs/docs/segment-ruby.md @@ -17,9 +17,7 @@ Display the currently active ruby version. "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#4063D8", - "properties": { - "template": " \uE791 {{ .Full }}" - } + "template": " \uE791 {{ .Full }}" } ``` diff --git a/docs/docs/segment-rust.md b/docs/docs/segment-rust.md index 2cbd120f..666af615 100644 --- a/docs/docs/segment-rust.md +++ b/docs/docs/segment-rust.md @@ -17,9 +17,7 @@ Display the currently active rust version. "powerline_symbol": "\uE0B0", "foreground": "#193549", "background": "#99908a", - "properties": { - "template": " \uE7a8 {{ .Full }} " - } + "template": " \uE7a8 {{ .Full }} " } ``` diff --git a/docs/docs/segment-session.md b/docs/docs/segment-session.md index 2eff6618..e743e797 100644 --- a/docs/docs/segment-session.md +++ b/docs/docs/segment-session.md @@ -18,9 +18,7 @@ Show the current user and host name. "background": "#c386f1", "leading_diamond": "\uE0B6", "trailing_diamond": "\uE0B0", - "properties": { - "template": "{{ if .SSHSession }}\uF817 {{ end }}{{ .UserName }}" - } + "template": "{{ if .SSHSession }}\uF817 {{ end }}{{ .UserName }}" } ``` diff --git a/docs/docs/segment-strava.mdx b/docs/docs/segment-strava.mdx index 0fd75666..ba89dbc0 100644 --- a/docs/docs/segment-strava.mdx +++ b/docs/docs/segment-strava.mdx @@ -47,11 +47,11 @@ if that color is visible against any of your backgrounds. "{{ if and (lt .Hours 100) (gt .Hours 50) }}#343a40{{ end }}", "{{ if lt .Hours 50 }}#FFFFFF{{ end }}" ], + "template": "{{.Name}} {{.Ago}} {{.Icon}}", "properties": { "access_token":"11111111111111111", "refresh_token":"1111111111111111", - "http_timeout": 1500, - "template": "{{.Name}} {{.Ago}} {{.Icon}}" + "http_timeout": 1500 } } ``` diff --git a/docs/docs/segment-swift.md b/docs/docs/segment-swift.md index bcf707fd..68be9fcf 100644 --- a/docs/docs/segment-swift.md +++ b/docs/docs/segment-swift.md @@ -17,9 +17,7 @@ Display the currently active [Swift][swift] version. "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#f6553c", - "properties": { - "template": " \ue755 {{ .Full }} " - } + "template": " \ue755 {{ .Full }} " } ``` diff --git a/docs/docs/segment-sysinfo.md b/docs/docs/segment-sysinfo.md index ff90d246..16dd5544 100644 --- a/docs/docs/segment-sysinfo.md +++ b/docs/docs/segment-sysinfo.md @@ -16,9 +16,9 @@ Display SysInfo. "powerline_symbol": "\ue0b0", "foreground": "#ffffff", "background": "#8f43f3", + "template":" \uf85a {{ round .PhysicalPercentUsed .Precision }}% ", "properties": { - "precision": 2, - "template":" \uf85a {{ round .PhysicalPercentUsed .Precision }}% " + "precision": 2 }, "style":"powerline" }, diff --git a/docs/docs/segment-terraform.md b/docs/docs/segment-terraform.md index 0db3e0d2..41541e4f 100644 --- a/docs/docs/segment-terraform.md +++ b/docs/docs/segment-terraform.md @@ -21,9 +21,7 @@ This requires a terraform binary in your PATH and will only show in directories "powerline_symbol": "\uE0B0", "foreground": "#000000", "background": "#ebcc34", - "properties": { - "template": "{{.WorkspaceName}}" - }, + "template": "{{.WorkspaceName}}" } ``` diff --git a/docs/docs/segment-text.md b/docs/docs/segment-text.md index 34ac65f4..a2cd39e8 100644 --- a/docs/docs/segment-text.md +++ b/docs/docs/segment-text.md @@ -15,9 +15,7 @@ Display text. "type": "text", "style": "plain", "foreground": "#E06C75", - "properties": { - "template": "\u276F" - } + "template": "\u276F" } ``` diff --git a/docs/docs/segment-ui5tooling.md b/docs/docs/segment-ui5tooling.md index 2cd83622..619dbe5b 100644 --- a/docs/docs/segment-ui5tooling.md +++ b/docs/docs/segment-ui5tooling.md @@ -16,9 +16,7 @@ see [the documentation][ui5-version-help]). "background": "#f5a834", "foreground": "#100e23", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \ufab6ui5 {{ .Full }} " - }, + "template": " \ufab6ui5 {{ .Full }} ", "style": "powerline", "type": "ui5tooling" } diff --git a/docs/docs/segment-wifi.md b/docs/docs/segment-wifi.md index ead73764..f8cd3ab5 100644 --- a/docs/docs/segment-wifi.md +++ b/docs/docs/segment-wifi.md @@ -24,9 +24,7 @@ Currently only supports Windows and WSL. Pull requests for Darwin and Linux supp "{{ if (lt .Signal 60) }}#DDDD11{{ else if (lt .Signal 90) }}#DD6611{{ else }}#11CC11{{ end }}" ], "powerline_symbol": "\uE0B0", - "properties": { - "template": "\uFAA8 {{ .SSID }} {{ .Signal }}% {{ .ReceiveRate }}Mbps" - } + "template": "\uFAA8 {{ .SSID }} {{ .Signal }}% {{ .ReceiveRate }}Mbps" } ``` diff --git a/docs/docs/segment-winreg.md b/docs/docs/segment-winreg.md index 29182c80..bf1b0b43 100644 --- a/docs/docs/segment-winreg.md +++ b/docs/docs/segment-winreg.md @@ -23,10 +23,10 @@ Supported registry key types: "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#444444", + "template":" \uE62A {{ .Value }}", "properties": { "path": "HKLM\\software\\microsoft\\windows nt\\currentversion\\buildlab", - "fallback":"unknown", - "template":" \uE62A {{ .Value }}" + "fallback":"unknown" } }, ``` diff --git a/src/engine/config.go b/src/engine/config.go index 5544e5d5..095a7316 100644 --- a/src/engine/config.go +++ b/src/engine/config.go @@ -24,7 +24,7 @@ const ( YAML string = "yaml" TOML string = "toml" - configVersion = 1 + configVersion = 2 ) // Config holds all the theme for rendering the prompt @@ -43,7 +43,7 @@ type Config struct { DebugPrompt *ExtraPrompt `json:"debug_prompt,omitempty"` Palette color.Palette `json:"palette,omitempty"` - Output string + Output string `json:"-"` format string origin string @@ -280,9 +280,7 @@ func defaultConfig() *Config { PowerlineSymbol: "\uE0B0", Background: "#ffffff", Foreground: "#111111", - Properties: properties.Map{ - properties.SegmentTemplate: " no config ", - }, + Template: " no config ", }, { Type: EXIT, @@ -294,9 +292,9 @@ func defaultConfig() *Config { BackgroundTemplates: []string{ "{{ if gt .Code 0 }}#f1184c{{ end }}", }, + Template: " \uE23A", Properties: properties.Map{ - properties.AlwaysEnabled: true, - properties.SegmentTemplate: " \uE23A", + properties.AlwaysEnabled: true, }, }, }, diff --git a/src/engine/migrate.go b/src/engine/migrate.go index 0f5b5b1f..a8078b4f 100644 --- a/src/engine/migrate.go +++ b/src/engine/migrate.go @@ -11,8 +11,9 @@ import ( const ( colorBackground = properties.Property("color_background") - prefix = properties.Property("prefix") - postfix = properties.Property("postfix") + prefix = properties.Property("prefix") + postfix = properties.Property("postfix") + segmentTemplate = properties.Property("template") ) func (cfg *Config) Migrate(env environment.Environment) { @@ -35,6 +36,9 @@ func (segment *Segment) migrate(env environment.Environment, version int) { if version < 1 { segment.migrationOne(env) } + if version < 2 { + segment.migrationTwo(env) + } } func (segment *Segment) migrationOne(env environment.Environment) { @@ -46,10 +50,10 @@ func (segment *Segment) migrationOne(env environment.Environment) { delete(segment.Properties, "enable_hyperlink") switch segment.Type { // nolint:exhaustive case TEXT: - segment.migratePropertyKey("text", properties.SegmentTemplate) + segment.migratePropertyKey("text", segmentTemplate) segment.migrateTemplate() case GIT: - hasTemplate := segment.hasProperty(properties.SegmentTemplate) + hasTemplate := segment.hasProperty(segmentTemplate) segment.migratePropertyKey("display_status", segments.FetchStatus) segment.migratePropertyKey("display_stash_count", segments.FetchStashCount) segment.migratePropertyKey("display_worktree_count", segments.FetchWorktreeCount) @@ -90,9 +94,9 @@ func (segment *Segment) migrationOne(env environment.Environment) { } if len(stateList) < 3 { enabledTemplate := "{{ $stateList := list %s }}{{ if has .State.String $stateList }}{{ .Icon }}{{ .Percentage }}{{ end }}" - template := segment.Properties.GetString(properties.SegmentTemplate, segment.writer.Template()) + template := segment.Properties.GetString(segmentTemplate, segment.writer.Template()) template = strings.ReplaceAll(template, "{{ .Icon }}{{ .Percentage }}", fmt.Sprintf(enabledTemplate, strings.Join(stateList, " "))) - segment.Properties[properties.SegmentTemplate] = template + segment.Properties[segmentTemplate] = template } // legacy properties delete(segment.Properties, "display_charging") @@ -102,10 +106,10 @@ func (segment *Segment) migrationOne(env environment.Environment) { segment.migrateTemplate() segment.migratePropertyKey("display_virtual_env", segments.FetchVirtualEnv) case SESSION: - hasTemplate := segment.hasProperty(properties.SegmentTemplate) + hasTemplate := segment.hasProperty(segmentTemplate) segment.migrateTemplate() segment.migrateIconOverride("ssh_icon", "\uf817 ") - template := segment.Properties.GetString(properties.SegmentTemplate, segment.writer.Template()) + template := segment.Properties.GetString(segmentTemplate, segment.writer.Template()) template = strings.ReplaceAll(template, ".ComputerName", ".HostName") if !segment.Properties.GetBool(properties.Property("display_host"), true) { template = strings.ReplaceAll(template, "@{{ .HostName }}", "") @@ -114,7 +118,7 @@ func (segment *Segment) migrationOne(env environment.Environment) { template = strings.ReplaceAll(template, "@", "") template = strings.ReplaceAll(template, "{{ .UserName }}", "") } - segment.Properties[properties.SegmentTemplate] = template + segment.Properties[segmentTemplate] = template segment.migrateIconOverride("user_info_separator", "@") if !hasTemplate { segment.migrateInlineColorOverride("user_color", "{{ .UserName }}") @@ -130,10 +134,10 @@ func (segment *Segment) migrationOne(env environment.Environment) { segment.migrateColorOverride("version_mismatch_color", "{{ if .Mismatch }}%s{{ end }}", background) } case EXIT: - template := segment.Properties.GetString(properties.SegmentTemplate, segment.writer.Template()) + template := segment.Properties.GetString(segmentTemplate, segment.writer.Template()) if strings.Contains(template, ".Text") { template = strings.ReplaceAll(template, ".Text", ".Meaning") - segment.Properties[properties.SegmentTemplate] = template + segment.Properties[segmentTemplate] = template } displayExitCode := properties.Property("display_exit_code") if !segment.Properties.GetBool(displayExitCode, true) { @@ -145,7 +149,7 @@ func (segment *Segment) migrationOne(env environment.Environment) { delete(segment.Properties, alwaysNumeric) template = strings.ReplaceAll(template, ".Meaning", ".Code") } - segment.Properties[properties.SegmentTemplate] = template + segment.Properties[segmentTemplate] = template segment.migrateTemplate() segment.migrateIconOverride("success_icon", "\uf42e") segment.migrateIconOverride("error_icon", "\uf00d") @@ -157,6 +161,18 @@ func (segment *Segment) migrationOne(env environment.Environment) { delete(segment.Properties, colorBackground) } +func (segment *Segment) migrationTwo(env environment.Environment) { + if err := segment.mapSegmentWithWriter(env); err != nil { + return + } + if !segment.hasProperty(segmentTemplate) { + return + } + template := segment.Properties.GetString(segmentTemplate, segment.writer.Template()) + segment.Template = template + delete(segment.Properties, segmentTemplate) +} + func (segment *Segment) hasProperty(property properties.Property) bool { for key := range segment.Properties { if key == property { @@ -184,7 +200,7 @@ func (segment *Segment) migratePropertyKey(oldProperty, newProperty properties.P func (segment *Segment) migrateTemplate() { defer segment.migratePreAndPostFix() - if segment.hasProperty(properties.SegmentTemplate) { + if segment.hasProperty(segmentTemplate) { // existing template, ensure to add default pre/postfix values if !segment.hasProperty(prefix) { segment.Properties[prefix] = " " @@ -194,18 +210,18 @@ func (segment *Segment) migrateTemplate() { } return } - segment.Properties[properties.SegmentTemplate] = segment.writer.Template() + segment.Properties[segmentTemplate] = segment.writer.Template() } func (segment *Segment) migrateIconOverride(property properties.Property, overrideValue string) { if !segment.hasProperty(property) { return } - template := segment.Properties.GetString(properties.SegmentTemplate, segment.writer.Template()) + template := segment.Properties.GetString(segmentTemplate, segment.writer.Template()) if strings.Contains(template, overrideValue) { template = strings.ReplaceAll(template, overrideValue, segment.Properties.GetString(property, "")) } - segment.Properties[properties.SegmentTemplate] = template + segment.Properties[segmentTemplate] = template delete(segment.Properties, property) } @@ -236,13 +252,13 @@ func (segment *Segment) migrateInlineColorOverride(property properties.Property, return } colorTemplate := fmt.Sprintf("<%s>%s", color, old) - template := segment.Properties.GetString(properties.SegmentTemplate, segment.writer.Template()) + template := segment.Properties.GetString(segmentTemplate, segment.writer.Template()) template = strings.ReplaceAll(template, old, colorTemplate) - segment.Properties[properties.SegmentTemplate] = template + segment.Properties[segmentTemplate] = template } func (segment *Segment) migratePreAndPostFix() { - template := segment.Properties.GetString(properties.SegmentTemplate, segment.writer.Template()) + template := segment.Properties.GetString(segmentTemplate, segment.writer.Template()) defaultValue := " " if segment.hasProperty(prefix) { prefix := segment.Properties.GetString(prefix, defaultValue) @@ -256,5 +272,5 @@ func (segment *Segment) migratePreAndPostFix() { template += postfix delete(segment.Properties, "postfix") } - segment.Properties[properties.SegmentTemplate] = template + segment.Properties[segmentTemplate] = template } diff --git a/src/engine/migrate_test.go b/src/engine/migrate_test.go index 7ef353ab..573e3042 100644 --- a/src/engine/migrate_test.go +++ b/src/engine/migrate_test.go @@ -102,8 +102,8 @@ func TestIconOverride(t *testing.T) { Expected: "hello bar bar", Property: Foo, Props: properties.Map{ - Foo: " bar ", - properties.SegmentTemplate: "hello foo bar", + Foo: " bar ", + segmentTemplate: "hello foo bar", }, }, { @@ -111,8 +111,8 @@ func TestIconOverride(t *testing.T) { Expected: "hello foo bar", Property: Foo, Props: properties.Map{ - Bar: " bar ", - properties.SegmentTemplate: "hello foo bar", + Bar: " bar ", + segmentTemplate: "hello foo bar", }, }, } @@ -120,11 +120,11 @@ func TestIconOverride(t *testing.T) { segment := &Segment{ Properties: tc.Props, writer: &MockedWriter{ - template: tc.Props.GetString(properties.SegmentTemplate, ""), + template: tc.Props.GetString(segmentTemplate, ""), }, } segment.migrateIconOverride(tc.Property, " foo ") - assert.Equal(t, tc.Expected, segment.Properties[properties.SegmentTemplate], tc.Case) + assert.Equal(t, tc.Expected, segment.Properties[segmentTemplate], tc.Case) } } @@ -325,7 +325,7 @@ func TestSegmentTemplateMigration(t *testing.T) { Properties: tc.Props, } segment.migrationOne(&mock.MockedEnvironment{}) - assert.Equal(t, tc.Expected, segment.Properties[properties.SegmentTemplate], tc.Case) + assert.Equal(t, tc.Expected, segment.Properties[segmentTemplate], tc.Case) } } @@ -341,8 +341,8 @@ func TestInlineColorOverride(t *testing.T) { Expected: "hello <#123456>foo bar", Property: Foo, Props: properties.Map{ - Foo: "#123456", - properties.SegmentTemplate: "hello foo bar", + Foo: "#123456", + segmentTemplate: "hello foo bar", }, }, { @@ -350,8 +350,8 @@ func TestInlineColorOverride(t *testing.T) { Expected: "hello foo bar", Property: Foo, Props: properties.Map{ - Bar: "#123456", - properties.SegmentTemplate: "hello foo bar", + Bar: "#123456", + segmentTemplate: "hello foo bar", }, }, } @@ -359,11 +359,11 @@ func TestInlineColorOverride(t *testing.T) { segment := &Segment{ Properties: tc.Props, writer: &MockedWriter{ - template: tc.Props.GetString(properties.SegmentTemplate, ""), + template: tc.Props.GetString(segmentTemplate, ""), }, } segment.migrateInlineColorOverride(tc.Property, "foo") - assert.Equal(t, tc.Expected, segment.Properties[properties.SegmentTemplate], tc.Case) + assert.Equal(t, tc.Expected, segment.Properties[segmentTemplate], tc.Case) } } @@ -403,11 +403,11 @@ func TestMigratePreAndPostfix(t *testing.T) { segment := &Segment{ Properties: tc.Props, writer: &MockedWriter{ - template: tc.Props.GetString(properties.SegmentTemplate, ""), + template: tc.Props.GetString(segmentTemplate, ""), }, } segment.migrateTemplate() - assert.Equal(t, tc.Expected, segment.Properties[properties.SegmentTemplate], tc.Case) + assert.Equal(t, tc.Expected, segment.Properties[segmentTemplate], tc.Case) assert.NotContains(t, segment.Properties, "prefix", tc.Case) assert.NotContains(t, segment.Properties, "postfix", tc.Case) } @@ -431,3 +431,36 @@ func TestMigrateConfig(t *testing.T) { assert.Equal(t, tc.Expected, cfg.ConsoleTitleTemplate, tc.Case) } } + +func TestMigrationTwo(t *testing.T) { + cases := []struct { + Case string + Expected string + Template string + }{ + { + Case: "With template", + Expected: "{{ .Name }}", + Template: "{{ .Name }}", + }, + { + Case: "No template", + Expected: "", + }, + } + for _, tc := range cases { + segment := &Segment{ + Type: SESSION, + Properties: properties.Map{}, + writer: &MockedWriter{ + template: tc.Template, + }, + } + if tc.Template != "" { + segment.Properties[segmentTemplate] = tc.Template + } + segment.migrationTwo(&mock.MockedEnvironment{}) + assert.Equal(t, tc.Expected, segment.Template, tc.Case) + assert.NotContains(t, segment.Properties, segmentTemplate, tc.Case) + } +} diff --git a/src/engine/segment.go b/src/engine/segment.go index 9b98e8d5..269deef6 100644 --- a/src/engine/segment.go +++ b/src/engine/segment.go @@ -26,6 +26,7 @@ type Segment struct { BackgroundTemplates color.Templates `json:"background_templates,omitempty"` LeadingDiamond string `json:"leading_diamond,omitempty"` TrailingDiamond string `json:"trailing_diamond,omitempty"` + Template string `json:"template,omitempty"` Properties properties.Map `json:"properties,omitempty"` writer SegmentWriter @@ -300,9 +301,11 @@ func (segment *Segment) mapSegmentWithWriter(env environment.Environment) error } func (segment *Segment) string() string { - segmentTemplate := segment.Properties.GetString(properties.SegmentTemplate, segment.writer.Template()) + if len(segment.Template) == 0 { + segment.Template = segment.writer.Template() + } tmpl := &template.Text{ - Template: segmentTemplate, + Template: segment.Template, Context: segment.writer, Env: segment.env, } diff --git a/src/properties/properties.go b/src/properties/properties.go index 0a497da6..89bcc522 100644 --- a/src/properties/properties.go +++ b/src/properties/properties.go @@ -33,8 +33,6 @@ const ( FetchVersion Property = "fetch_version" // AlwaysEnabled decides whether or not to always display the info AlwaysEnabled Property = "always_enabled" - // SegmentTemplate is the template to use to render the information - SegmentTemplate Property = "template" // VersionURLTemplate is the template to use when building language segment hyperlink VersionURLTemplate Property = "version_url_template" // DisplayError to display when an error occurs or not diff --git a/src/segments/text_test.go b/src/segments/text_test.go index 040ce583..659d1a22 100644 --- a/src/segments/text_test.go +++ b/src/segments/text_test.go @@ -3,7 +3,6 @@ package segments import ( "oh-my-posh/environment" "oh-my-posh/mock" - "oh-my-posh/properties" "testing" "github.com/stretchr/testify/assert" @@ -41,9 +40,6 @@ func TestTextSegment(t *testing.T) { }) txt := &Text{ env: env, - props: properties.Map{ - properties.SegmentTemplate: tc.Template, - }, } assert.Equal(t, tc.ExpectedString, renderTemplate(env, tc.Template, txt), tc.Case) } diff --git a/themes/M365Princess.omp.json b/themes/M365Princess.omp.json index 7d7420a4..696875be 100644 --- a/themes/M365Princess.omp.json +++ b/themes/M365Princess.omp.json @@ -8,10 +8,8 @@ "background": "#9A348E", "foreground": "#ffffff", "leading_diamond": "\ue0b6", - "properties": { - "template": "{{ .UserName }} " - }, "style": "diamond", + "template": "{{ .UserName }} ", "type": "session" }, { @@ -19,10 +17,10 @@ "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { - "style": "folder", - "template": " {{ .Path }} " + "style": "folder" }, "style": "powerline", + "template": " {{ .Path }} ", "type": "path" }, { @@ -33,30 +31,28 @@ "branch_icon": "", "fetch_stash_count": true, "fetch_status": false, - "fetch_upstream_icon": true, - "template": " \u279c ({{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }}) " + "fetch_upstream_icon": true }, "style": "powerline", + "template": " \u279c ({{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }}) ", "type": "git" }, { "background": "#86BBD8", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} " - }, "style": "powerline", + "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ", "type": "node" }, { "background": "#33658A", "foreground": "#ffffff", "properties": { - "template": " \u2665 {{ .CurrentDate | date .Format }} ", "time_format": "15:04" }, "style": "diamond", + "template": " \u2665 {{ .CurrentDate | date .Format }} ", "trailing_diamond": "\ue0b0", "type": "time" } @@ -65,5 +61,5 @@ } ], "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/agnoster.omp.json b/themes/agnoster.omp.json index 1ef835a2..9f5b798e 100644 --- a/themes/agnoster.omp.json +++ b/themes/agnoster.omp.json @@ -8,20 +8,16 @@ "background": "#ffe9aa", "foreground": "#100e23", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \uf0e7 " - }, "style": "powerline", + "template": " \uf0e7 ", "type": "root" }, { "background": "#ffffff", "foreground": "#100e23", "powerline_symbol": "\ue0b0", - "properties": { - "template": " {{ .UserName }}@{{ .HostName }} " - }, "style": "powerline", + "template": " {{ .UserName }}@{{ .HostName }} ", "type": "session" }, { @@ -32,40 +28,34 @@ "folder_icon": "\uf115", "folder_separator_icon": " \ue0b1 ", "home_icon": "\uf7db", - "style": "agnoster", - "template": " {{ .Path }} " + "style": "agnoster" }, "style": "powerline", + "template": " {{ .Path }} ", "type": "path" }, { "background": "#95ffa4", "foreground": "#193549", "powerline_symbol": "\ue0b0", - "properties": { - "template": " {{ .HEAD }} " - }, "style": "powerline", + "template": " {{ .HEAD }} ", "type": "git" }, { "background": "#906cff", "foreground": "#100e23", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} " - }, "style": "powerline", + "template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ", "type": "python" }, { "background": "#ff8080", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", - "properties": { - "template": " {{ .Meaning }} " - }, "style": "powerline", + "template": " {{ .Meaning }} ", "type": "exit" } ], @@ -73,5 +63,5 @@ } ], "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/agnosterplus.omp.json b/themes/agnosterplus.omp.json index 6d1b0254..dcf66764 100644 --- a/themes/agnosterplus.omp.json +++ b/themes/agnosterplus.omp.json @@ -7,10 +7,10 @@ { "foreground": "#007ACC", "properties": { - "template": " {{ .CurrentDate | date .Format }} ", "time_format": "15:04:05" }, "style": "plain", + "template": " {{ .CurrentDate | date .Format }} ", "type": "time" } ], @@ -25,10 +25,8 @@ "background": "#ffffff", "foreground": "#100e23", "powerline_symbol": "\ue0b0", - "properties": { - "template": " {{ .UserName }}@{{ .HostName }} " - }, "style": "powerline", + "template": " {{ .UserName }}@{{ .HostName }} ", "type": "session" }, { @@ -39,20 +37,18 @@ "folder_icon": "\uf115", "folder_separator_icon": " \ue0b1 ", "home_icon": "\uf7db", - "style": "agnoster", - "template": " {{ .Path }} " + "style": "agnoster" }, "style": "powerline", + "template": " {{ .Path }} ", "type": "path" }, { "background": "#95ffa4", "foreground": "#193549", "powerline_symbol": "\ue0b0", - "properties": { - "template": " {{ .HEAD }} " - }, "style": "powerline", + "template": " {{ .HEAD }} ", "type": "git" } ], @@ -60,5 +56,5 @@ } ], "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/aliens.omp.json b/themes/aliens.omp.json index cd977c5f..760376ae 100644 --- a/themes/aliens.omp.json +++ b/themes/aliens.omp.json @@ -8,10 +8,8 @@ "background": "#61AFEF", "foreground": "#ffffff", "leading_diamond": "\ue0b6", - "properties": { - "template": " {{ .UserName }}@{{ .HostName }} " - }, "style": "diamond", + "template": " {{ .UserName }}@{{ .HostName }} ", "trailing_diamond": "\ue0b0", "type": "session" }, @@ -20,30 +18,26 @@ "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { - "style": "full", - "template": " {{ .Path }} " + "style": "full" }, "style": "powerline", + "template": " {{ .Path }} ", "type": "path" }, { "background": "#95ffa4", "foreground": "#193549", "powerline_symbol": "\ue0b0", - "properties": { - "template": " {{ .HEAD }} " - }, "style": "powerline", + "template": " {{ .HEAD }} ", "type": "git" }, { "background": "#FF6471", "foreground": "#ffffff", "leading_diamond": "\ue0b0", - "properties": { - "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} " - }, "style": "diamond", + "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ", "trailing_diamond": "\ue0b4", "type": "python" } @@ -52,5 +46,5 @@ } ], "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/amro.omp.json b/themes/amro.omp.json index f6dd72c3..cfebf14b 100644 --- a/themes/amro.omp.json +++ b/themes/amro.omp.json @@ -6,20 +6,18 @@ "segments": [ { "foreground": "#45F1C2", - "properties": { - "template": "\uf508 {{ .UserName }} on" - }, "style": "plain", + "template": "\uf508 {{ .UserName }} on", "type": "session" }, { "foreground": "#0CA0D8", "properties": { "folder_separator_icon": "/", - "style": "full", - "template": " \uf07b {{ .Path }} " + "style": "full" }, "style": "plain", + "template": " \uf07b {{ .Path }} ", "type": "path" }, { @@ -27,10 +25,10 @@ "powerline_symbol": "\ue0b0", "properties": { "fetch_stash_count": true, - "fetch_upstream_icon": true, - "template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_upstream_icon": true }, "style": "plain", + "template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" } ], @@ -42,23 +40,19 @@ "segments": [ { "foreground": "#cd5e42", - "properties": { - "template": "\ue3bf " - }, "style": "plain", + "template": "\ue3bf ", "type": "root" }, { "foreground": "#CD4277", - "properties": { - "template": "# " - }, "style": "plain", + "template": "# ", "type": "text" } ], "type": "prompt" } ], - "version": 1 + "version": 2 } diff --git a/themes/atomic.omp.json b/themes/atomic.omp.json index 919108ca..3630241c 100644 --- a/themes/atomic.omp.json +++ b/themes/atomic.omp.json @@ -8,19 +8,15 @@ "background": "#0077c2", "foreground": "#ffffff", "leading_diamond": "\u256d\u2500\ue0b6", - "properties": { - "template": "\uf120 {{ .Name }} " - }, "style": "diamond", + "template": "\uf120 {{ .Name }} ", "type": "shell" }, { "background": "#ef5350", "foreground": "#FFFB38", - "properties": { - "template": "\ue0b0 \uf292 " - }, "style": "diamond", + "template": "\ue0b0 \uf292 ", "type": "root" }, { @@ -30,10 +26,10 @@ "properties": { "folder_icon": " \uf07b ", "home_icon": "\uf7dd", - "style": "folder", - "template": " \uf07b\uf553{{ .Path }} " + "style": "folder" }, "style": "powerline", + "template": " \uf07b\uf553{{ .Path }} ", "type": "path" }, { @@ -49,10 +45,10 @@ "properties": { "branch_icon": "\ue725 ", "fetch_status": true, - "fetch_upstream_icon": true, - "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#ef5350> \uf046 {{ .Staging.String }}{{ end }} " + "fetch_upstream_icon": true }, "style": "powerline", + "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#ef5350> \uf046 {{ .Staging.String }}{{ end }} ", "type": "git" }, { @@ -60,10 +56,10 @@ "foreground": "#ffffff", "properties": { "style": "roundrock", - "template": " \ufa1e{{ .FormattedMs }}\u2800", "threshold": 0 }, "style": "diamond", + "template": " \ufa1e{{ .FormattedMs }}\u2800", "trailing_diamond": "\ue0b4", "type": "executiontime" } @@ -80,10 +76,10 @@ "properties": { "fetch_package_manager": true, "npm_icon": " <#cc3a3a>\ue5fa ", - "template": "\ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}", "yarn_icon": " <#348cba>\uf61a" }, "style": "diamond", + "template": "\ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}", "trailing_diamond": "\ue0b4 ", "type": "node" }, @@ -91,10 +87,8 @@ "background": "#306998", "foreground": "#FFE873", "leading_diamond": "\ue0b6", - "properties": { - "template": "\ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}" - }, "style": "diamond", + "template": "\ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b4 ", "type": "python" }, @@ -102,10 +96,8 @@ "background": "#0e8ac8", "foreground": "#ec2729", "leading_diamond": "\ue0b6", - "properties": { - "template": "\ue738 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" - }, "style": "diamond", + "template": "\ue738 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b4 ", "type": "java" }, @@ -113,10 +105,8 @@ "background": "#0e0e0e", "foreground": "#0d6da8", "leading_diamond": "\ue0b6", - "properties": { - "template": "\ue77f {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }}" - }, "style": "diamond", + "template": "\ue77f {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b4 ", "type": "dotnet" }, @@ -124,10 +114,8 @@ "background": "#ffffff", "foreground": "#06aad5", "leading_diamond": "\ue0b6", - "properties": { - "template": "\ufcd1 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" - }, "style": "diamond", + "template": "\ufcd1 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b4 ", "type": "go" }, @@ -135,10 +123,8 @@ "background": "#f3f0ec", "foreground": "#925837", "leading_diamond": "\ue0b6", - "properties": { - "template": "\ue7a8 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" - }, "style": "diamond", + "template": "\ue7a8 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b4 ", "type": "rust" }, @@ -146,10 +132,8 @@ "background": "#e1e8e9", "foreground": "#055b9c", "leading_diamond": " \ue0b6", - "properties": { - "template": "\ue798 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" - }, "style": "diamond", + "template": "\ue798 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b4 ", "type": "dart" }, @@ -157,10 +141,8 @@ "background": "#ffffff", "foreground": "#ce092f", "leading_diamond": " \ue0b6", - "properties": { - "template": "\ue753 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" - }, "style": "diamond", + "template": "\ue753 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b4 ", "type": "angular" }, @@ -168,10 +150,8 @@ "background": "#945bb3", "foreground": "#359a25", "leading_diamond": " \ue0b6", - "properties": { - "template": "<#ca3c34>\ue624 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" - }, "style": "diamond", + "template": "<#ca3c34>\ue624 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b4 ", "type": "julia" }, @@ -179,10 +159,8 @@ "background": "#ffffff", "foreground": "#9c1006", "leading_diamond": "\ue0b6", - "properties": { - "template": "\ue791 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" - }, "style": "diamond", + "template": "\ue791 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b4 ", "type": "ruby" }, @@ -190,10 +168,8 @@ "background": "#ffffff", "foreground": "#5398c2", "leading_diamond": "\ue0b6", - "properties": { - "template": "\uf104<#f5bf45>\uf0e7\uf105 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" - }, "style": "diamond", + "template": "\uf104<#f5bf45>\uf0e7\uf105 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b4 ", "type": "azfunc" }, @@ -201,10 +177,8 @@ "background": "#565656", "foreground": "#faa029", "leading_diamond": "\ue0b6", - "properties": { - "template": "\ue7ad {{.Profile}}{{if .Region}}@{{.Region}}{{end}}" - }, "style": "diamond", + "template": "\ue7ad {{.Profile}}{{if .Region}}@{{.Region}}{{end}}", "trailing_diamond": "\ue0b4 ", "type": "aws" }, @@ -212,10 +186,8 @@ "background": "#316ce4", "foreground": "#ffffff", "leading_diamond": "\ue0b6", - "properties": { - "template": "\ufd31 {{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}}" - }, "style": "diamond", + "template": "\ufd31 {{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}}", "trailing_diamond": "\ue0b4", "type": "kubectl" }, @@ -226,10 +198,10 @@ "properties": { "linux": "\ue27f", "macos": "\ue27f", - "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}}<#262626> \ue0b2", "windows": "\ue27f" }, "style": "diamond", + "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}}<#262626> \ue0b2", "type": "os" }, { @@ -245,10 +217,10 @@ "properties": { "charged_icon": "\uf58e ", "charging_icon": "\uf1e6 ", - "discharging_icon": "\ue234 ", - "template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}\uf295 <#262626>\ue0b2" + "discharging_icon": "\ue234 " }, "style": "diamond", + "template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}\uf295 <#262626>\ue0b2", "type": "battery" }, { @@ -257,10 +229,10 @@ "invert_powerline": true, "leading_diamond": "\ue0b2", "properties": { - "template": " \uf5ef {{ .CurrentDate | date .Format }} ", "time_format": "_2,15:04" }, "style": "diamond", + "template": " \uf5ef {{ .CurrentDate | date .Format }} ", "trailing_diamond": "\ue0b4", "type": "time" } @@ -273,10 +245,8 @@ "segments": [ { "foreground": "#21c7c7", - "properties": { - "template": "\u2570\u2500" - }, "style": "plain", + "template": "\u2570\u2500", "type": "text" }, { @@ -285,10 +255,10 @@ "{{ if gt .Code 0 }}#ef5350{{ end }}" ], "properties": { - "always_enabled": true, - "template": "\ue285\ufb00 " + "always_enabled": true }, "style": "plain", + "template": "\ue285\ufb00 ", "type": "exit" } ], @@ -296,5 +266,5 @@ } ], "osc99": true, - "version": 1 + "version": 2 } diff --git a/themes/atomicBit.omp.json b/themes/atomicBit.omp.json index 99094c3e..789be3b5 100644 --- a/themes/atomicBit.omp.json +++ b/themes/atomicBit.omp.json @@ -5,26 +5,20 @@ "alignment": "left", "segments": [ { - "properties": { - "template": "\u256d\u2500[<#ffff55>{{ .UserName }}<#ff5555>@<#55ff55>{{ .HostName }}]\u2500" - }, "style": "plain", + "template": "\u256d\u2500[<#ffff55>{{ .UserName }}<#ff5555>@<#55ff55>{{ .HostName }}]\u2500", "type": "session" }, { "foreground": "#ff5555", - "properties": { - "template": "<#ffffff>[{{ .Path }}<#ffffff>]" - }, "style": "plain", + "template": "<#ffffff>[{{ .Path }}<#ffffff>]", "type": "path" }, { "foreground": "#FF9248", - "properties": { - "template": "<#ffffff>\u2500(#<#ffffff>)" - }, "style": "plain", + "template": "<#ffffff>\u2500(#<#ffffff>)", "type": "root" } ], @@ -38,106 +32,82 @@ "properties": { "fetch_package_manager": true, "npm_icon": " <#cc3a3a>\ue5fa ", - "template": "<#ffffff>({{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}<#ffffff>)", "yarn_icon": " <#348cba>\uf61a" }, "style": "plain", + "template": "<#ffffff>({{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}<#ffffff>)", "type": "node" }, { "foreground": "#FFE873", - "properties": { - "template": "<#ffffff>({{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}<#ffffff>)" - }, "style": "plain", + "template": "<#ffffff>({{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}<#ffffff>)", "type": "python" }, { "foreground": "#ec2729", - "properties": { - "template": "<#ffffff>({{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)" - }, "style": "plain", + "template": "<#ffffff>({{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)", "type": "java" }, { "foreground": "#0d6da8", - "properties": { - "template": "<#ffffff>({{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }}<#ffffff>)" - }, "style": "plain", + "template": "<#ffffff>({{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }}<#ffffff>)", "type": "dotnet" }, { "foreground": "#06aad5", - "properties": { - "template": "<#ffffff>({{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)" - }, "style": "plain", + "template": "<#ffffff>({{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)", "type": "go" }, { "foreground": "#925837", - "properties": { - "template": "<#ffffff>({{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)" - }, "style": "plain", + "template": "<#ffffff>({{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)", "type": "rust" }, { "foreground": "#055b9c", - "properties": { - "template": "<#ffffff>({{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)" - }, "style": "plain", + "template": "<#ffffff>({{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)", "type": "dart" }, { "foreground": "#ce092f", - "properties": { - "template": "<#ffffff>({{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)" - }, "style": "plain", + "template": "<#ffffff>({{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)", "type": "angular" }, { "foreground": "#359a25", - "properties": { - "template": "<#ffffff>({{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)" - }, "style": "plain", + "template": "<#ffffff>({{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)", "type": "julia" }, { "foreground": "#9c1006", - "properties": { - "template": "<#ffffff>({{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)" - }, "style": "plain", + "template": "<#ffffff>({{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)", "type": "ruby" }, { "foreground": "#5398c2", - "properties": { - "template": "<#ffffff>({{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)" - }, "style": "plain", + "template": "<#ffffff>({{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)", "type": "azfunc" }, { "foreground": "#faa029", - "properties": { - "template": "<#ffffff>({{.Profile}}{{if .Region}}@{{.Region}}{{end}}<#ffffff>)" - }, "style": "plain", + "template": "<#ffffff>({{.Profile}}{{if .Region}}@{{.Region}}{{end}}<#ffffff>)", "type": "aws" }, { "foreground": "#316ce4", - "properties": { - "template": "<#ffffff>({{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}}<#ffffff>)" - }, "style": "plain", + "template": "<#ffffff>({{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}}<#ffffff>)", "type": "kubectl" }, { @@ -145,10 +115,10 @@ "properties": { "linux": "<#ffffff>\ue27f", "macos": "<#ffffff>\ue27f", - "template": "<#ffffff>({{ if .WSL }}WSL at {{ end }}{{.Icon}}<#ffffff>)\u2500", "windows": "<#ffffff>\ue27f" }, "style": "plain", + "template": "<#ffffff>({{ if .WSL }}WSL at {{ end }}{{.Icon}}<#ffffff>)\u2500", "type": "os" }, { @@ -161,19 +131,19 @@ "properties": { "charged_icon": "\uf58e ", "charging_icon": "\uf1e6 ", - "discharging_icon": "\ue234 ", - "template": "<#ffffff>[{{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}%<#ffffff>]\u2500" + "discharging_icon": "\ue234 " }, "style": "plain", + "template": "<#ffffff>[{{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}%<#ffffff>]\u2500", "type": "battery" }, { "foreground": "#55ffff", "properties": { - "template": "<#ffffff>[{{ .CurrentDate | date .Format }}<#ffffff>]", "time_format": "_2,15:04" }, "style": "plain", + "template": "<#ffffff>[{{ .CurrentDate | date .Format }}<#ffffff>]", "type": "time" } ], @@ -184,10 +154,8 @@ "newline": true, "segments": [ { - "properties": { - "template": "\u2570\u2500" - }, "style": "plain", + "template": "\u2570\u2500", "type": "text" }, { @@ -195,10 +163,10 @@ "properties": { "branch_icon": "\ue725 ", "fetch_status": true, - "fetch_upstream_icon": true, - "template": "<#ffffff>[{{ .HEAD }}{{ if .Staging.Changed }}<#00AA00> \u25cf {{ .Staging.String }}{{ end }}{{ if .Working.Changed }}<#D75F00> \u25cf {{ .Working.String }}{{ end }}<#ffffff>]-" + "fetch_upstream_icon": true }, "style": "plain", + "template": "<#ffffff>[{{ .HEAD }}{{ if .Staging.Changed }}<#00AA00> \u25cf {{ .Staging.String }}{{ end }}{{ if .Working.Changed }}<#D75F00> \u25cf {{ .Working.String }}{{ end }}<#ffffff>]-", "type": "git" }, { @@ -207,10 +175,10 @@ "{{ if gt .Code 0 }}#ef5350{{ end }}" ], "properties": { - "always_enabled": true, - "template": "\ue285\ufb00 " + "always_enabled": true }, "style": "plain", + "template": "\ue285\ufb00 ", "type": "exit" } ], @@ -218,5 +186,5 @@ } ], "osc99": true, - "version": 1 + "version": 2 } diff --git a/themes/avit.omp.json b/themes/avit.omp.json index bb1018c9..386aaf8e 100644 --- a/themes/avit.omp.json +++ b/themes/avit.omp.json @@ -7,34 +7,28 @@ { "foreground": "#ffffff", "properties": { - "style": "full", - "template": "{{ .Path }} " + "style": "full" }, "style": "plain", + "template": "{{ .Path }} ", "type": "path" }, { "foreground": "#C2C206", - "properties": { - "template": "{{ .HEAD }} " - }, "style": "plain", + "template": "{{ .HEAD }} ", "type": "git" }, { "foreground": "#B5B50D", - "properties": { - "template": " \uf0e7 " - }, "style": "plain", + "template": " \uf0e7 ", "type": "root" }, { "foreground": "#C94A16", - "properties": { - "template": "x{{ .Meaning }} " - }, "style": "plain", + "template": "x{{ .Meaning }} ", "type": "exit" } ], @@ -46,10 +40,8 @@ "segments": [ { "foreground": "#007ACC", - "properties": { - "template": "\ue602 " - }, "style": "plain", + "template": "\ue602 ", "type": "text" } ], @@ -57,5 +49,5 @@ } ], "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/blue-owl.omp.json b/themes/blue-owl.omp.json index a36a7572..578de71f 100644 --- a/themes/blue-owl.omp.json +++ b/themes/blue-owl.omp.json @@ -7,19 +7,15 @@ { "background": "#a313a8", "foreground": "#FFEB3B", - "properties": { - "template": "\u26a1 " - }, "style": "plain", + "template": "\u26a1 ", "type": "root" }, { "background": "transparent", "foreground": "#ffffff", - "properties": { - "template": "{{ if .WSL }}WSL at {{ end }}{{.Icon}} " - }, "style": "plain", + "template": "{{ if .WSL }}WSL at {{ end }}{{.Icon}} ", "type": "os" }, { @@ -30,10 +26,10 @@ "folder_icon": "\uf6d7", "folder_separator_icon": " \ue0bd ", "home_icon": "\uf7db", - "style": "agnoster_short", - "template": " {{ .Path }} " + "style": "agnoster_short" }, "style": "diamond", + "template": " {{ .Path }} ", "trailing_diamond": "\ue0b0", "type": "path" }, @@ -49,10 +45,10 @@ "powerline_symbol": "\ue0b0", "properties": { "fetch_stash_count": true, - "fetch_status": true, - "template": " {{ .HEAD }}{{ if .Staging.Changed }}<#FF6F00> \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_status": true }, "style": "powerline", + "template": " {{ .HEAD }}{{ if .Staging.Changed }}<#FF6F00> \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" }, { @@ -61,10 +57,10 @@ "leading_diamond": "\ue0b0", "properties": { "style": "dallas", - "template": " {{ .FormattedMs }}s ", "threshold": 0 }, "style": "diamond", + "template": " {{ .FormattedMs }}s ", "trailing_diamond": "\ue0b0", "type": "executiontime" }, @@ -72,10 +68,8 @@ "background": "#910000", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \uf12a {{ .Meaning }} " - }, "style": "powerline", + "template": " \uf12a {{ .Meaning }} ", "type": "exit" } ], @@ -88,20 +82,18 @@ "background": "#29315A", "foreground": "#43CCEA", "leading_diamond": "\ue0c5", - "properties": { - "template": " {{ .UserName }} / {{ .HostName }}" - }, "style": "diamond", + "template": " {{ .UserName }} / {{ .HostName }}", "type": "session" }, { "background": "#29315A", "foreground": "#3EC669", "properties": { - "template": " \ue0ba\ue0bc {{ .CurrentDate | date .Format }} ", "time_format": "15:04:05" }, "style": "plain", + "template": " \ue0ba\ue0bc {{ .CurrentDate | date .Format }} ", "type": "time" } ], @@ -117,10 +109,10 @@ "{{ if gt .Code 0 }}#ff0000{{ end }}" ], "properties": { - "always_enabled": true, - "template": "\u276f " + "always_enabled": true }, "style": "plain", + "template": "\u276f ", "type": "exit" } ], @@ -129,5 +121,5 @@ ], "console_title_template": "{{if .Root}} \u26a1 {{end}}{{.Folder | replace \"~\" \"🏚\" }} @ {{.HostName}}", "osc99": true, - "version": 1 + "version": 2 } diff --git a/themes/blueish.omp.json b/themes/blueish.omp.json index 873f0eae..2e4b1bac 100644 --- a/themes/blueish.omp.json +++ b/themes/blueish.omp.json @@ -9,10 +9,10 @@ "foreground": "#26C6DA", "leading_diamond": "\ue0c5", "properties": { - "macos": "mac", - "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} \ue0b1" + "macos": "mac" }, "style": "diamond", + "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} \ue0b1", "trailing_diamond": "\ue0b0", "type": "os" }, @@ -20,10 +20,8 @@ "background": "#546E7A", "foreground": "#26C6DA", "powerline_symbol": "\ue0b0", - "properties": { - "template": " {{ .UserName }}@{{ .HostName }} " - }, "style": "powerline", + "template": " {{ .UserName }}@{{ .HostName }} ", "type": "session" }, { @@ -35,10 +33,8 @@ ], "foreground": "#193549", "powerline_symbol": "\ue0b0", - "properties": { - "template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}\uf295 \uf583 " - }, "style": "powerline", + "template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}\uf295 \uf583 ", "type": "battery" }, { @@ -46,10 +42,10 @@ "foreground": "#193549", "powerline_symbol": "\ue0b0", "properties": { - "style": "folder", - "template": " \ue5ff {{ .Path }} " + "style": "folder" }, "style": "powerline", + "template": " \ue5ff {{ .Path }} ", "type": "path" }, { @@ -58,40 +54,34 @@ "powerline_symbol": "\ue0b0", "properties": { "fetch_stash_count": true, - "fetch_upstream_icon": true, - "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_upstream_icon": true }, "style": "powerline", + "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" }, { "background": "#6CA35E", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} " - }, "style": "powerline", + "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ", "type": "node" }, { "background": "#ffff66", "foreground": "#193549", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \uf0e7 " - }, "style": "powerline", + "template": " \uf0e7 ", "type": "root" }, { "background": "#0077c2", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \ufd31 {{.Context}} :: {{if .Namespace}}{{.Namespace}}{{else}}default{{end}} " - }, "style": "powerline", + "template": " \ufd31 {{.Context}} :: {{if .Namespace}}{{.Namespace}}{{else}}default{{end}} ", "type": "kubectl" }, { @@ -102,10 +92,10 @@ "foreground": "#ffffff", "leading_diamond": "\ue0b0", "properties": { - "always_enabled": true, - "template": " \ufc8d " + "always_enabled": true }, "style": "diamond", + "template": " \ufc8d ", "trailing_diamond": "\ue0b0", "type": "exit" } @@ -118,10 +108,8 @@ "segments": [ { "foreground": "#007ACC", - "properties": { - "template": "\u279c " - }, "style": "plain", + "template": "\u279c ", "type": "text" } ], @@ -129,5 +117,5 @@ } ], "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/bubbles.omp.json b/themes/bubbles.omp.json index de1c00e8..08e43b0b 100644 --- a/themes/bubbles.omp.json +++ b/themes/bubbles.omp.json @@ -8,10 +8,8 @@ "background": "#29315A", "foreground": "#E64747", "leading_diamond": "\ue0b6", - "properties": { - "template": "{{ .UserName }}" - }, "style": "diamond", + "template": "{{ .UserName }}", "trailing_diamond": "\ue0b4 ", "type": "session" }, @@ -20,10 +18,10 @@ "foreground": "#3EC669", "leading_diamond": "\ue0b6", "properties": { - "style": "folder", - "template": "\ue5ff {{ .Path }}" + "style": "folder" }, "style": "diamond", + "template": "\ue5ff {{ .Path }}", "trailing_diamond": "\ue0b4", "type": "path" }, @@ -32,10 +30,10 @@ "foreground": "#43CCEA", "leading_diamond": " \ue0b6", "properties": { - "branch_icon": "", - "template": "{{ .HEAD }}" + "branch_icon": "" }, "style": "diamond", + "template": "{{ .HEAD }}", "trailing_diamond": "\ue0b4", "type": "git" }, @@ -44,10 +42,10 @@ "foreground": "#E4F34A", "leading_diamond": " \ue0b6", "properties": { - "fetch_version": false, - "template": "\ue235{{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}" + "fetch_version": false }, "style": "diamond", + "template": "\ue235{{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b4", "type": "python" }, @@ -56,10 +54,10 @@ "foreground": "#7FD5EA", "leading_diamond": " \ue0b6", "properties": { - "fetch_version": false, - "template": "\ufcd1{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" + "fetch_version": false }, "style": "diamond", + "template": "\ufcd1{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b4", "type": "go" }, @@ -68,10 +66,10 @@ "foreground": "#42E66C", "leading_diamond": " \ue0b6", "properties": { - "fetch_version": false, - "template": "\ue718{{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}" + "fetch_version": false }, "style": "diamond", + "template": "\ue718{{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}", "trailing_diamond": "\ue0b4", "type": "node" }, @@ -80,10 +78,10 @@ "foreground": "#E64747", "leading_diamond": " \ue0b6", "properties": { - "fetch_version": false, - "template": "\ue791{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" + "fetch_version": false }, "style": "diamond", + "template": "\ue791{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b4", "type": "ruby" }, @@ -92,10 +90,10 @@ "foreground": "#E64747", "leading_diamond": " \ue0b6", "properties": { - "fetch_version": false, - "template": "\ue738{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" + "fetch_version": false }, "style": "diamond", + "template": "\ue738{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b4", "type": "java" }, @@ -104,10 +102,10 @@ "foreground": "#9B6BDF", "leading_diamond": " \ue0b6", "properties": { - "fetch_version": false, - "template": "\ue624{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} " + "fetch_version": false }, "style": "diamond", + "template": "\ue624{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", "trailing_diamond": "\ue0b4", "type": "julia" }, @@ -123,10 +121,10 @@ "properties": { "charged_icon": "• ", "charging_icon": "\u21e1 ", - "discharging_icon": "\u21e3 ", - "template": "{{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}" + "discharging_icon": "\u21e3 " }, "style": "diamond", + "template": "{{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}", "trailing_diamond": "\ue0b4", "type": "battery" } @@ -143,10 +141,10 @@ "leading_diamond": "\ue0b6", "properties": { "style": "austin", - "template": "{{ .FormattedMs }}", "threshold": 150 }, "style": "diamond", + "template": "{{ .FormattedMs }}", "trailing_diamond": "\ue0b4 ", "type": "executiontime" }, @@ -154,10 +152,8 @@ "background": "#29315A", "foreground": "#7FD5EA", "leading_diamond": "\ue0b6", - "properties": { - "template": "\u276f" - }, "style": "diamond", + "template": "\u276f", "trailing_diamond": "\ue0b4", "type": "text" } @@ -166,5 +162,5 @@ } ], "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/bubblesextra.omp.json b/themes/bubblesextra.omp.json index 77c325bc..b1fdf859 100644 --- a/themes/bubblesextra.omp.json +++ b/themes/bubblesextra.omp.json @@ -9,10 +9,10 @@ "foreground": "#3EC669", "leading_diamond": "\ue0b6", "properties": { - "style": "folder", - "template": "\ue5ff {{ .Path }}" + "style": "folder" }, "style": "diamond", + "template": "\ue5ff {{ .Path }}", "trailing_diamond": "\ue0b4", "type": "path" }, @@ -30,10 +30,10 @@ "branch_max_length": 25, "fetch_stash_count": true, "fetch_status": true, - "fetch_upstream_icon": true, - "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_upstream_icon": true }, "style": "diamond", + "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "trailing_diamond": "\ue0b4", "type": "git" }, @@ -42,10 +42,10 @@ "foreground": "#E4F34A", "leading_diamond": " \ue0b6", "properties": { - "fetch_version": false, - "template": "\ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}" + "fetch_version": false }, "style": "diamond", + "template": "\ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b4", "type": "python" }, @@ -54,10 +54,10 @@ "foreground": "#7FD5EA", "leading_diamond": " \ue0b6", "properties": { - "fetch_version": false, - "template": "\ufcd1{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" + "fetch_version": false }, "style": "diamond", + "template": "\ufcd1{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b4", "type": "go" }, @@ -66,10 +66,10 @@ "foreground": "#42E66C", "leading_diamond": " \ue0b6", "properties": { - "fetch_version": false, - "template": "\ue718{{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}" + "fetch_version": false }, "style": "diamond", + "template": "\ue718{{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}", "trailing_diamond": "\ue0b4", "type": "node" }, @@ -78,10 +78,10 @@ "foreground": "#E64747", "leading_diamond": " \ue0b6", "properties": { - "fetch_version": false, - "template": "\ue791{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" + "fetch_version": false }, "style": "diamond", + "template": "\ue791{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b4", "type": "ruby" }, @@ -90,10 +90,10 @@ "foreground": "#E64747", "leading_diamond": " \ue0b6", "properties": { - "fetch_version": false, - "template": "\ue738{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" + "fetch_version": false }, "style": "diamond", + "template": "\ue738{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b4", "type": "java" }, @@ -102,10 +102,10 @@ "foreground": "#9B6BDF", "leading_diamond": " \ue0b6", "properties": { - "fetch_version": false, - "template": "\ue624{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} " + "fetch_version": false }, "style": "diamond", + "template": "\ue624{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", "trailing_diamond": "\ue0b4", "type": "julia" }, @@ -121,10 +121,10 @@ "properties": { "charged_icon": "• ", "charging_icon": "\u21e1 ", - "discharging_icon": "\u21e3 ", - "template": "{{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}" + "discharging_icon": "\u21e3 " }, "style": "diamond", + "template": "{{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}", "trailing_diamond": "\ue0b4", "type": "battery" } @@ -141,10 +141,10 @@ "leading_diamond": "\ue0b6", "properties": { "style": "austin", - "template": "{{ .FormattedMs }}", "threshold": 150 }, "style": "diamond", + "template": "{{ .FormattedMs }}", "trailing_diamond": "\ue0b4 ", "type": "executiontime" }, @@ -152,10 +152,8 @@ "background": "#29315A", "foreground": "#E64747", "leading_diamond": "\ue0b6", - "properties": { - "template": "{{ .UserName }} \u276f" - }, "style": "diamond", + "template": "{{ .UserName }} \u276f", "trailing_diamond": "\ue0b4", "type": "text" } @@ -164,5 +162,5 @@ } ], "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/bubblesline.omp.json b/themes/bubblesline.omp.json index 8c58f22e..727febce 100644 --- a/themes/bubblesline.omp.json +++ b/themes/bubblesline.omp.json @@ -9,10 +9,10 @@ "foreground": "#3EC669", "leading_diamond": "\ue0b6", "properties": { - "style": "folder", - "template": "\ue5ff {{ .Path }}" + "style": "folder" }, "style": "diamond", + "template": "\ue5ff {{ .Path }}", "trailing_diamond": "\ue0b4", "type": "path" }, @@ -21,10 +21,10 @@ "foreground": "#43CCEA", "leading_diamond": " \ue0b6", "properties": { - "branch_icon": "", - "template": "{{ .HEAD }}" + "branch_icon": "" }, "style": "diamond", + "template": "{{ .HEAD }}", "trailing_diamond": "\ue0b4", "type": "git" }, @@ -33,10 +33,10 @@ "foreground": "#E4F34A", "leading_diamond": " \ue0b6", "properties": { - "fetch_version": false, - "template": "\ue235{{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}" + "fetch_version": false }, "style": "diamond", + "template": "\ue235{{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b4", "type": "python" }, @@ -45,10 +45,10 @@ "foreground": "#7FD5EA", "leading_diamond": " \ue0b6", "properties": { - "fetch_version": false, - "template": "\ufcd1{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" + "fetch_version": false }, "style": "diamond", + "template": "\ufcd1{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b4", "type": "go" }, @@ -57,10 +57,10 @@ "foreground": "#42E66C", "leading_diamond": " \ue0b6", "properties": { - "fetch_version": false, - "template": "\ue718{{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}" + "fetch_version": false }, "style": "diamond", + "template": "\ue718{{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}", "trailing_diamond": "\ue0b4", "type": "node" }, @@ -69,10 +69,10 @@ "foreground": "#E64747", "leading_diamond": " \ue0b6", "properties": { - "fetch_version": false, - "template": "\ue791{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" + "fetch_version": false }, "style": "diamond", + "template": "\ue791{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b4", "type": "ruby" }, @@ -81,10 +81,10 @@ "foreground": "#E64747", "leading_diamond": " \ue0b6", "properties": { - "fetch_version": false, - "template": "\ue738{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" + "fetch_version": false }, "style": "diamond", + "template": "\ue738{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b4", "type": "java" }, @@ -93,10 +93,10 @@ "foreground": "#9B6BDF", "leading_diamond": " \ue0b6", "properties": { - "fetch_version": false, - "template": "\ue624{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" + "fetch_version": false }, "style": "diamond", + "template": "\ue624{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b4", "type": "julia" }, @@ -112,10 +112,10 @@ "properties": { "charged_icon": "\u25cf ", "charging_icon": "\u21e1 ", - "discharging_icon": "\u21e3 ", - "template": "{{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}" + "discharging_icon": "\u21e3 " }, "style": "diamond", + "template": "{{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}", "trailing_diamond": "\ue0b4", "type": "battery" } @@ -129,10 +129,8 @@ "background": "#424242", "foreground": "#9B6BDF", "leading_diamond": "\ue0b6", - "properties": { - "template": "{{ .UserName }} \u276f" - }, "style": "diamond", + "template": "{{ .UserName }} \u276f", "trailing_diamond": "\ue0b4 ", "type": "session" } @@ -140,5 +138,5 @@ "type": "prompt" } ], - "version": 1 + "version": 2 } diff --git a/themes/capr4n.omp.json b/themes/capr4n.omp.json index 123d64f3..2d0d47b4 100644 --- a/themes/capr4n.omp.json +++ b/themes/capr4n.omp.json @@ -7,20 +7,18 @@ { "background": "#003543", "foreground": "#ffffff", - "properties": { - "template": " \uf64f {{ .CurrentDate | date .Format }} " - }, "style": "plain", + "template": " \uf64f {{ .CurrentDate | date .Format }} ", "type": "time" }, { "background": "#83769c", "foreground": "#ffffff", "properties": { - "always_enabled": true, - "template": " \ufa1e{{ .FormattedMs }} " + "always_enabled": true }, "style": "plain", + "template": " \ufa1e{{ .FormattedMs }} ", "type": "executiontime" } ], @@ -33,10 +31,10 @@ "background": "#61AFEF", "foreground": "#ffffff", "properties": { - "display_host": false, - "template": "{{if .Root}} \uf0e7 {{.UserName}} {{else}} {{.UserName}} {{end}}" + "display_host": false }, "style": "diamond", + "template": "{{if .Root}} \uf0e7 {{.UserName}} {{else}} {{.UserName}} {{end}}", "trailing_diamond": "\ue0b0", "type": "session" }, @@ -48,20 +46,18 @@ "folder_icon": "\uf115", "folder_separator_icon": " \ue0b1 ", "max_depth": 2, - "style": "agnoster_short", - "template": " {{ .Path }} " + "style": "agnoster_short" }, "style": "powerline", + "template": " {{ .Path }} ", "type": "path" }, { "background": "#95ffa4", "foreground": "#193549", "powerline_symbol": "\ue0b0", - "properties": { - "template": " {{ .HEAD }} " - }, "style": "powerline", + "template": " {{ .HEAD }} ", "type": "git" } ], @@ -70,5 +66,5 @@ ], "console_title_template": "{{if .Root}} \u26a1 {{end}}{{.UserName}} \u2794 📁{{.Folder}}", "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/cert.omp.json b/themes/cert.omp.json index 49ff8397..8a873052 100644 --- a/themes/cert.omp.json +++ b/themes/cert.omp.json @@ -8,10 +8,8 @@ "background": "#E36464", "foreground": "#fff", "leading_diamond": "\ue0b6", - "properties": { - "template": "{{ .UserName }} " - }, "style": "diamond", + "template": "{{ .UserName }} ", "trailing_diamond": "\ue0c6", "type": "session" }, @@ -20,10 +18,10 @@ "foreground": "#fff", "leading_diamond": "\ue0c7", "properties": { - "style": "folder", - "template": " {{ .Path }} " + "style": "folder" }, "style": "diamond", + "template": " {{ .Path }} ", "trailing_diamond": "\ue0c6", "type": "path" }, @@ -32,10 +30,10 @@ "foreground": "#fff", "leading_diamond": "\ue0c7", "properties": { - "branch_icon": "", - "template": " git({{ .HEAD }}) " + "branch_icon": "" }, "style": "diamond", + "template": " git({{ .HEAD }}) ", "trailing_diamond": "\ue0c6", "type": "git" }, @@ -44,10 +42,10 @@ "foreground": "#fff", "leading_diamond": "\ue0c7", "properties": { - "template": " {{ .CurrentDate | date .Format }} ", "time_format": "15:04" }, "style": "diamond", + "template": " {{ .CurrentDate | date .Format }} ", "trailing_diamond": "\ue0c6", "type": "time" } @@ -56,5 +54,5 @@ } ], "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/cinnamon.omp.json b/themes/cinnamon.omp.json index f16ec380..ad3e5096 100644 --- a/themes/cinnamon.omp.json +++ b/themes/cinnamon.omp.json @@ -8,20 +8,18 @@ "background": "#07585c", "foreground": "#ffffff", "leading_diamond": "\ue0b6", - "properties": { - "template": " {{ .UserName }}@{{ .HostName }} " - }, "style": "diamond", + "template": " {{ .UserName }}@{{ .HostName }} ", "type": "session" }, { "background": "#3e9022", "foreground": "#ffffff", "properties": { - "style": "folder", - "template": " \ue5ff {{ .Path }} " + "style": "folder" }, "style": "plain", + "template": " \ue5ff {{ .Path }} ", "type": "path" }, { @@ -29,10 +27,10 @@ "foreground": "#ffffff", "properties": { "branch_icon": "", - "fetch_upstream_icon": true, - "template": " {{ .UpstreamIcon }}{{ .HEAD }} " + "fetch_upstream_icon": true }, "style": "plain", + "template": " {{ .UpstreamIcon }}{{ .HEAD }} ", "type": "git" }, { @@ -42,10 +40,10 @@ "paused_icon": "\uf8e3 ", "playing_icon": "\ue602 ", "stopped_icon": "\uf04d ", - "template": " \uf9c6 {{ .Icon }}{{ if ne .Status \"stopped\" }}{{ .Artist }} - {{ .Track }}{{ end }} ", "track_separator": " - " }, "style": "plain", + "template": " \uf9c6 {{ .Icon }}{{ if ne .Status \"stopped\" }}{{ .Artist }} - {{ .Track }}{{ end }} ", "type": "spotify" }, { @@ -55,10 +53,10 @@ ], "foreground": "#ffffff", "properties": { - "always_enabled": true, - "template": " \uf7d4 " + "always_enabled": true }, "style": "diamond", + "template": " \uf7d4 ", "trailing_diamond": "\ue0b4", "type": "exit" } @@ -67,5 +65,5 @@ } ], "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/clean-detailed.omp.json b/themes/clean-detailed.omp.json index e41e3af1..1f0dada7 100644 --- a/themes/clean-detailed.omp.json +++ b/themes/clean-detailed.omp.json @@ -11,11 +11,11 @@ "leading_diamond": "\ue0b2", "properties": { "macos": "\uf179 ", - "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}}", "ubuntu": "\uf31b ", "windows": "\uf871 " }, "style": "diamond", + "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}}", "trailing_diamond": "\ue0b2", "type": "os" }, @@ -23,10 +23,8 @@ "background": "#FEF5ED", "foreground": "#011627", "leading_diamond": "\ue0b2", - "properties": { - "template": "\uf489 {{ .Name }}" - }, "style": "diamond", + "template": "\uf489 {{ .Name }}", "trailing_diamond": "\ue0b2", "type": "shell" }, @@ -34,19 +32,15 @@ "background": "#516BEB", "foreground": "#ffffff", "leading_diamond": "\ue0b2", - "properties": { - "template": "\uf85a CPU: {{ round .PhysicalPercentUsed .Precision }}% | " - }, "style": "diamond", + "template": "\uf85a CPU: {{ round .PhysicalPercentUsed .Precision }}% | ", "type": "sysinfo" }, { "background": "#516BEB", "foreground": "#ffffff", - "properties": { - "template": "MEM: {{ (div ((sub .PhysicalTotalMemory .PhysicalFreeMemory)|float64) 1000000000.0) }}/{{ (div .PhysicalTotalMemory 1000000000.0) }}GB \uf85a " - }, "style": "diamond", + "template": "MEM: {{ (div ((sub .PhysicalTotalMemory .PhysicalFreeMemory)|float64) 1000000000.0) }}/{{ (div .PhysicalTotalMemory 1000000000.0) }}GB \uf85a ", "trailing_diamond": "\ue0b2", "type": "sysinfo" }, @@ -56,10 +50,10 @@ "leading_diamond": "\ue0b2", "properties": { "style": "roundrock", - "template": " {{ .FormattedMs }} ", "threshold": 0 }, "style": "diamond", + "template": " {{ .FormattedMs }} ", "trailing_diamond": "\ue0b0", "type": "executiontime" } @@ -78,10 +72,10 @@ "fetch_stash_count": true, "fetch_status": true, "fetch_upstream_icon": true, - "fetch_worktree_count": true, - "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_worktree_count": true }, "style": "diamond", + "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "trailing_diamond": "\ue0b0", "type": "git" } @@ -93,35 +87,31 @@ "newline": true, "segments": [ { - "properties": { - "template": "\u256d\u2500" - }, "style": "plain", + "template": "\u256d\u2500", "type": "text" }, { "properties": { - "template": " \u2665 {{ .CurrentDate | date .Format }} |", "time_format": "15:04" }, "style": "plain", + "template": " \u2665 {{ .CurrentDate | date .Format }} |", "type": "time" }, { - "properties": { - "template": " \uf292 " - }, "style": "plain", + "template": " \uf292 ", "type": "root" }, { "properties": { "folder_icon": "\uf07b ", "folder_separator_icon": " \uf554 ", - "home_icon": "\uf7db ", - "template": " {{ .Path }} " + "home_icon": "\uf7db " }, "style": "plain", + "template": " {{ .Path }} ", "type": "path" } ], @@ -133,10 +123,10 @@ "segments": [ { "properties": { - "always_enabled": true, - "template": "\u2570\u2500 " + "always_enabled": true }, "style": "plain", + "template": "\u2570\u2500 ", "type": "exit" } ], @@ -150,5 +140,5 @@ "foreground": "#FEF5ED", "template": "\ue285 " }, - "version": 1 + "version": 2 } diff --git a/themes/cloud-native-azure.omp.json b/themes/cloud-native-azure.omp.json index 5a2db987..864ebffd 100644 --- a/themes/cloud-native-azure.omp.json +++ b/themes/cloud-native-azure.omp.json @@ -8,10 +8,8 @@ "background": "#c386f1", "foreground": "#ffffff", "leading_diamond": "\ue0b6", - "properties": { - "template": " {{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }}@{{ .HostName }} " - }, "style": "diamond", + "template": " {{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }}@{{ .HostName }} ", "trailing_diamond": "\ue0b0", "type": "session" }, @@ -20,10 +18,10 @@ "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { - "style": "folder", - "template": " \uf07b {{ .Path }} " + "style": "folder" }, "style": "powerline", + "template": " \uf07b {{ .Path }} ", "type": "path" }, { @@ -40,10 +38,10 @@ "branch_max_length": 25, "fetch_stash_count": true, "fetch_status": true, - "fetch_upstream_icon": true, - "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_upstream_icon": true }, "style": "powerline", + "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" }, { @@ -54,10 +52,10 @@ "foreground": "#ffffff", "leading_diamond": "\ue0b0", "properties": { - "always_enabled": true, - "template": " \ue23a {{ if gt .Code 0 }}\uf00d {{ .Meaning }}{{ else }}\uf42e{{ end }} " + "always_enabled": true }, "style": "diamond", + "template": " \ue23a {{ if gt .Code 0 }}\uf00d {{ .Meaning }}{{ else }}\uf42e{{ end }} ", "trailing_diamond": "\ue0b4", "type": "exit" } @@ -70,10 +68,8 @@ { "background": "#0077c2", "foreground": "#ffffff", - "properties": { - "template": "<#0077c2,transparent>\ue0b6 \uf489 {{ .Name }} \ue0b2" - }, "style": "plain", + "template": "<#0077c2,transparent>\ue0b6 \uf489 {{ .Name }} \ue0b2", "type": "shell" }, { @@ -89,10 +85,10 @@ "properties": { "charged_icon": "\ue22f ", "charging_icon": "\uf583 ", - "discharging_icon": "\uf582 ", - "template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}\uf295 " + "discharging_icon": "\uf582 " }, "style": "powerline", + "template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}\uf295 ", "type": "battery" }, { @@ -100,10 +96,8 @@ "foreground": "#111111", "invert_powerline": true, "leading_diamond": "\ue0b2", - "properties": { - "template": " {{ .CurrentDate | date .Format }} " - }, "style": "diamond", + "template": " {{ .CurrentDate | date .Format }} ", "trailing_diamond": "\ue0b4", "type": "time" } @@ -118,10 +112,8 @@ "background": "#ebcc34", "foreground": "#000000", "leading_diamond": "\ue0b6", - "properties": { - "template": " \ufd31 Kubernetes {{.Context}} cluster {{if .Namespace}}- {{.Namespace}} namespace{{end}} " - }, "style": "diamond", + "template": " \ufd31 Kubernetes {{.Context}} cluster {{if .Namespace}}- {{.Namespace}} namespace{{end}} ", "trailing_diamond": "\ue0b0", "type": "kubectl" }, @@ -129,10 +121,8 @@ "background": "#9ec3f0", "foreground": "#000000", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \ufd03 Subscription {{ .Name }} ({{ if .EnvironmentName | contains \"AzureCloud\" }}{{ \"Global\" }}{{ else }}{{ .EnvironmentName }}{{ end }}) " - }, "style": "powerline", + "template": " \ufd03 Subscription {{ .Name }} ({{ if .EnvironmentName | contains \"AzureCloud\" }}{{ \"Global\" }}{{ else }}{{ .EnvironmentName }}{{ end }}) ", "type": "az" } ], @@ -144,10 +134,8 @@ "segments": [ { "foreground": "#E06C75", - "properties": { - "template": " ~ " - }, "style": "plain", + "template": " ~ ", "type": "text" } ], @@ -156,5 +144,5 @@ ], "console_title_template": "{{ .Shell }} in {{ .Folder }}", "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/craver.omp.json b/themes/craver.omp.json index afdccc59..a4aef179 100644 --- a/themes/craver.omp.json +++ b/themes/craver.omp.json @@ -8,20 +8,16 @@ "background": "#f1184c", "foreground": "#242424", "powerline_symbol": "\ue0c4", - "properties": { - "template": "\uf0e7" - }, "style": "powerline", + "template": "\uf0e7", "type": "root" }, { "background": "#282c34", "foreground": "#3A86FF", "leading_diamond": " ", - "properties": { - "template": "{{ if .WSL }}WSL at {{ end }}{{.Icon}} " - }, "style": "diamond", + "template": "{{ if .WSL }}WSL at {{ end }}{{.Icon}} ", "type": "os" }, { @@ -29,10 +25,10 @@ "foreground": "#FFBB00", "powerline_symbol": "\ue0c4", "properties": { - "template": "{{ .CurrentDate | date .Format }} ", "time_format": "15:04:05" }, "style": "powerline", + "template": "{{ .CurrentDate | date .Format }} ", "type": "time" }, { @@ -41,10 +37,10 @@ "powerline_symbol": "\ue0b0", "properties": { "folder_separator_icon": "/", - "style": "folder", - "template": "\ue5ff {{ .Path }} " + "style": "folder" }, "style": "powerline", + "template": "\ue5ff {{ .Path }} ", "type": "path" }, { @@ -54,20 +50,18 @@ "properties": { "fetch_stash_count": true, "fetch_status": true, - "fetch_upstream_icon": true, - "template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_upstream_icon": true }, "style": "powerline", + "template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" }, { "background": "#0184bc", "foreground": "#ffffff", "powerline_symbol": "\ue0c4", - "properties": { - "template": " \ue70c {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }} " - }, "style": "powerline", + "template": " \ue70c {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }} ", "type": "dotnet" }, { @@ -76,10 +70,10 @@ "powerline_symbol": "\ue0c4", "properties": { "style": "austin", - "template": " <#fefefe>\ufbab {{ .FormattedMs }} ", "threshold": 1 }, "style": "powerline", + "template": " <#fefefe>\ufbab {{ .FormattedMs }} ", "type": "executiontime" }, { @@ -89,10 +83,8 @@ ], "foreground": "#242424", "powerline_symbol": "\ue0b4", - "properties": { - "template": " \uf7d4 " - }, "style": "powerline", + "template": " \uf7d4 ", "type": "exit" } ], @@ -104,10 +96,8 @@ "segments": [ { "foreground": "#f1184c", - "properties": { - "template": "\u279c " - }, "style": "plain", + "template": "\u279c ", "type": "text" } ], @@ -115,5 +105,5 @@ } ], "console_title_template": "{{if .Root}}(Admin) {{end}}{{.Folder}}", - "version": 1 + "version": 2 } diff --git a/themes/darkblood.omp.json b/themes/darkblood.omp.json index e527f8f4..182aceb5 100644 --- a/themes/darkblood.omp.json +++ b/themes/darkblood.omp.json @@ -6,34 +6,26 @@ "segments": [ { "foreground": "#ffffff", - "properties": { - "template": "<#CB4B16>\u250f[{{ .UserName }}<#CB4B16>]" - }, "style": "plain", + "template": "<#CB4B16>\u250f[{{ .UserName }}<#CB4B16>]", "type": "session" }, { "foreground": "#ffffff", - "properties": { - "template": "<#CB4B16>[{{ .HEAD }}<#CB4B16>]" - }, "style": "plain", + "template": "<#CB4B16>[{{ .HEAD }}<#CB4B16>]", "type": "git" }, { "foreground": "#ffffff", - "properties": { - "template": "<#CB4B16>[\uf0e7<#CB4B16>]" - }, "style": "plain", + "template": "<#CB4B16>[\uf0e7<#CB4B16>]", "type": "root" }, { "foreground": "#ffffff", - "properties": { - "template": "<#CB4B16>[x{{ .Meaning }}<#CB4B16>]" - }, "style": "plain", + "template": "<#CB4B16>[x{{ .Meaning }}<#CB4B16>]", "type": "exit" } ], @@ -46,10 +38,10 @@ { "foreground": "#ffffff", "properties": { - "style": "full", - "template": "<#CB4B16>\u2516[{{ .Path }}<#CB4B16>]>" + "style": "full" }, "style": "plain", + "template": "<#CB4B16>\u2516[{{ .Path }}<#CB4B16>]>", "type": "path" } ], @@ -57,5 +49,5 @@ } ], "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/default.omp.json b/themes/default.omp.json index 95d2fde8..b2a740ee 100644 --- a/themes/default.omp.json +++ b/themes/default.omp.json @@ -1,14 +1,5 @@ { "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", - "palette": { - "yellow": "#F3AE35", - "orange": "#F07623", - "blue": "#4B95E9", - "black": "#262B44", - "green": "#59C9A5", - "white": "#E0DEF4", - "red": "#D81E5B" - }, "blocks": [ { "alignment": "left", @@ -18,10 +9,10 @@ "foreground": "p:black", "leading_diamond": "\ue0b6", "properties": { - "display_host": false, - "template": " {{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }} " + "display_host": false }, "style": "diamond", + "template": " {{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }} ", "trailing_diamond": "\ue0b0", "type": "session" }, @@ -31,10 +22,10 @@ "powerline_symbol": "\ue0b0", "properties": { "home_icon": "~", - "style": "folder", - "template": " \uf74a {{ path .Path .Location }} " + "style": "folder" }, "style": "powerline", + "template": " \uf74a {{ path .Path .Location }} ", "type": "path" }, { @@ -56,10 +47,10 @@ "branch_max_length": 25, "fetch_status": true, "fetch_upstream_icon": true, - "github_icon": "\uf7a3", - "template": " {{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }} " + "github_icon": "\uf7a3" }, "style": "powerline", + "template": " {{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }} ", "type": "git" }, { @@ -67,22 +58,24 @@ "foreground": "p:white", "powerline_symbol": "\ue0b0", "properties": { - "root_icon": "\uf0ad", - "template": " \uf0e7 " + "root_icon": "\uf0ad" }, "style": "powerline", + "template": " \uf0e7 ", "type": "root" }, { "background": "p:blue", - "background_templates": ["{{ if gt .Code 0 }}p:red{{ end }}"], + "background_templates": [ + "{{ if gt .Code 0 }}p:red{{ end }}" + ], "foreground": "p:white", + "leading_diamond": "\ue0b0", "properties": { - "always_enabled": true, - "template": " {{ if gt .Code 0 }}\uf00d{{ else }}\uf00c{{ end }} " + "always_enabled": true }, "style": "diamond", - "leading_diamond": "\ue0b0", + "template": " {{ if gt .Code 0 }}\uf00d{{ else }}\uf00c{{ end }} ", "trailing_diamond": "\ue0b4", "type": "exit" } @@ -97,20 +90,20 @@ "properties": { "display_mode": "files", "fetch_package_manager": false, - "home_enabled": false, - "template": "\uf898 " + "home_enabled": false }, "style": "plain", + "template": "\uf898 ", "type": "node" }, { "background": "transparent", "foreground": "p:blue", "properties": { - "fetch_version": false, - "template": "\ufcd1 " + "fetch_version": false }, "style": "powerline", + "template": "\ufcd1 ", "type": "go" }, { @@ -119,28 +112,24 @@ "properties": { "display_mode": "files", "fetch_version": true, - "fetch_virtual_env": false, - "template": "\ue235 " + "fetch_virtual_env": false }, "style": "plain", + "template": "\ue235 ", "type": "python" }, { "background": "transparent", "foreground": "p:white", - "properties": { - "template": "in {{ .Name }} " - }, "style": "plain", + "template": "in {{ .Name }} ", "type": "shell" }, { "background": "transparent", "foreground": "p:white", - "properties": { - "template": "at {{ .CurrentDate | date \"15:04:05\" }}" - }, "style": "plain", + "template": "at {{ .CurrentDate | date \"15:04:05\" }}", "type": "time" } ], @@ -149,6 +138,15 @@ ], "console_title_template": "{{ .Shell }} in {{ .Folder }}", "final_space": true, + "palette": { + "black": "#262B44", + "blue": "#4B95E9", + "green": "#59C9A5", + "orange": "#F07623", + "red": "#D81E5B", + "white": "#E0DEF4", + "yellow": "#F3AE35" + }, "secondary_prompt": { "background": "transparent", "foreground": "p:black", @@ -160,11 +158,13 @@ "foreground": "p:white", "leading_diamond": "\ue0b6", "properties": { - "display_default": true, - "template": " \ue7ad {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} " + "display_default": true }, "style": "diamond", - "tips": ["aws"], + "template": " \ue7ad {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} ", + "tips": [ + "aws" + ], "trailing_diamond": "\ue0b4", "type": "aws" }, @@ -172,11 +172,11 @@ "background": "p:blue", "foreground": "p:white", "leading_diamond": "\ue0b6", - "properties": { - "template": " \ufd03 {{ .Name }} " - }, "style": "diamond", - "tips": ["az"], + "template": " \ufd03 {{ .Name }} ", + "tips": [ + "az" + ], "trailing_diamond": "\ue0b4", "type": "az" } @@ -186,5 +186,5 @@ "foreground": "p:black", "template": "\ue0b6<,p:yellow> {{ .Folder }} \ue0b0 " }, - "version": 1 + "version": 2 } diff --git a/themes/di4am0nd.omp.json b/themes/di4am0nd.omp.json index b70a3e8e..df5597fc 100644 --- a/themes/di4am0nd.omp.json +++ b/themes/di4am0nd.omp.json @@ -6,37 +6,35 @@ "segments": [ { "foreground": "#FFBD00", - "properties": { - "template": "{{ .UserName }}'s " - }, "style": "plain", + "template": "{{ .UserName }}'s ", "type": "session" }, { "foreground": "#00C6F7", "properties": { - "style": "folder", - "template": "{{ .Path }}/ " + "style": "folder" }, "style": "plain", + "template": "{{ .Path }}/ ", "type": "path" }, { "foreground": "#F62F2E", "properties": { - "fetch_status": true, - "template": "<#ffffff>on {{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }} " + "fetch_status": true }, "style": "plain", + "template": "<#ffffff>on {{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }} ", "type": "git" }, { "foreground": "#98C379", "properties": { - "fetch_version": true, - "template": "<#ffffff>via \ue781 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} " + "fetch_version": true }, "style": "plain", + "template": "<#ffffff>via \ue781 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ", "type": "node" } ], @@ -47,10 +45,8 @@ "segments": [ { "foreground": "#85C980", - "properties": { - "template": "RAM:{{ (div ((sub .PhysicalTotalMemory .PhysicalFreeMemory)|float64) 1000000000.0) }}/{{ (div .PhysicalTotalMemory 1000000000.0) }}GB " - }, "style": "diamond", + "template": "RAM:{{ (div ((sub .PhysicalTotalMemory .PhysicalFreeMemory)|float64) 1000000000.0) }}/{{ (div .PhysicalTotalMemory 1000000000.0) }}GB ", "trailing_diamond": " ", "type": "sysinfo" }, @@ -59,10 +55,10 @@ "leading_diamond": "\u250b", "properties": { "style": "roundrock", - "template": " {{ .FormattedMs }} ", "threshold": 0 }, "style": "diamond", + "template": " {{ .FormattedMs }} ", "type": "executiontime" } ], @@ -74,10 +70,8 @@ "segments": [ { "foreground": "#FFBD00", - "properties": { - "template": "\u2b9e " - }, "style": "plain", + "template": "\u2b9e ", "type": "text" } ], @@ -85,5 +79,5 @@ } ], "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/emodipt.omp.json b/themes/emodipt.omp.json index c7d6e618..394cc4c3 100644 --- a/themes/emodipt.omp.json +++ b/themes/emodipt.omp.json @@ -7,58 +7,52 @@ { "foreground": "#E5C07B", "properties": { - "template": "[{{ .CurrentDate | date .Format }}]", "time_format": "15:04:05" }, "style": "plain", + "template": "[{{ .CurrentDate | date .Format }}]", "type": "time" }, { "foreground": "#B5B50D", - "properties": { - "template": " \uf0e7 " - }, "style": "plain", + "template": " \uf0e7 ", "type": "root" }, { "foreground": "#61AFEF", "properties": { - "style": "agnoster", - "template": " {{ .Path }} on" + "style": "agnoster" }, "style": "plain", + "template": " {{ .Path }} on", "type": "path" }, { "foreground": "#F3C267", "properties": { "branch_gone_icon": "\u274e", - "branch_identical_icon": "\uf14a", - "template": " {{ .HEAD }} " + "branch_identical_icon": "\uf14a" }, "style": "plain", + "template": " {{ .HEAD }} ", "type": "git" }, { "foreground": "#C94A16", - "properties": { - "template": "x{{ .Meaning }} " - }, "style": "plain", + "template": "x{{ .Meaning }} ", "type": "exit" }, { "foreground": "#E06C75", - "properties": { - "template": "\u276f " - }, "style": "plain", + "template": "\u276f ", "type": "text" } ], "type": "prompt" } ], - "version": 1 + "version": 2 } diff --git a/themes/festivetech.omp.json b/themes/festivetech.omp.json index 50fbea2f..afc0a0e5 100644 --- a/themes/festivetech.omp.json +++ b/themes/festivetech.omp.json @@ -8,10 +8,8 @@ "background": "#adbccd", "foreground": "#0f1225", "leading_diamond": "\ue0b6", - "properties": { - "template": "{{ .UserName }} " - }, "style": "diamond", + "template": "{{ .UserName }} ", "type": "session" }, { @@ -19,10 +17,10 @@ "foreground": "#0f1225", "powerline_symbol": "\ue0b0", "properties": { - "style": "folder", - "template": " {{ .Path }} " + "style": "folder" }, "style": "powerline", + "template": " {{ .Path }} ", "type": "path" }, { @@ -33,30 +31,28 @@ "branch_icon": "", "fetch_stash_count": true, "fetch_status": true, - "fetch_upstream_icon": true, - "template": " \u279c ({{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }}) " + "fetch_upstream_icon": true }, "style": "powerline", + "template": " \u279c ({{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }}) ", "type": "git" }, { "background": "#86BBD8", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} " - }, "style": "powerline", + "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ", "type": "node" }, { "background": "#1f4b8e", "foreground": "#ffffff", "properties": { - "template": " \uf9b6{{ .CurrentDate | date .Format }} ", "time_format": "15:04" }, "style": "diamond", + "template": " \uf9b6{{ .CurrentDate | date .Format }} ", "trailing_diamond": "\ue0b0", "type": "time" } @@ -69,10 +65,8 @@ "background": "#1f4b8e", "foreground": "#ffffff", "leading_diamond": "\ue0b2", - "properties": { - "template": " \uf1bb {{ .Env.DAYS }} days till Christmas " - }, "style": "diamond", + "template": " \uf1bb {{ .Env.DAYS }} days till Christmas ", "trailing_diamond": "\ue0b4", "type": "text" } @@ -87,5 +81,5 @@ "foreground": "#ffffff", "template": "<#1f4b8e,transparent>\ue0b6<#ffffff,#1f4b8e>\uf2dc<#1f4b8e,transparent>\ue0b4 {{ .Command }}" }, - "version": 1 + "version": 2 } diff --git a/themes/fish.omp.json b/themes/fish.omp.json index a004cc5e..113880a3 100644 --- a/themes/fish.omp.json +++ b/themes/fish.omp.json @@ -6,26 +6,20 @@ "segments": [ { "foreground": "#ffffff", - "properties": { - "template": " {{ .Meaning }}" - }, "style": "plain", + "template": " {{ .Meaning }}", "type": "exit" }, { "foreground": "#100e23", - "properties": { - "template": " \uf0e7 " - }, "style": "plain", + "template": " \uf0e7 ", "type": "root" }, { "foreground": "#ffffff", - "properties": { - "template": " {{ .UserName }}@{{ .HostName }} " - }, "style": "plain", + "template": " {{ .UserName }}@{{ .HostName }} ", "type": "session" }, { @@ -34,32 +28,28 @@ "properties": { "folder_icon": "\uf115", "folder_separator_icon": " \ue0b1 ", - "style": "full", - "template": "\ue0b0 {{ .Path }} " + "style": "full" }, "style": "plain", + "template": "\ue0b0 {{ .Path }} ", "type": "path" }, { "background": "#007ACC", "foreground": "#ffffff", - "properties": { - "template": "<#ffffff>\ue0b1 {{ .HEAD }} " - }, "style": "plain", + "template": "<#ffffff>\ue0b1 {{ .HEAD }} ", "type": "git" }, { "foreground": "#007ACC", - "properties": { - "template": "\ue0b0 " - }, "style": "plain", + "template": "\ue0b0 ", "type": "text" } ], "type": "prompt" } ], - "version": 1 + "version": 2 } diff --git a/themes/free-ukraine.omp.json b/themes/free-ukraine.omp.json index ff96a29d..726b27a7 100644 --- a/themes/free-ukraine.omp.json +++ b/themes/free-ukraine.omp.json @@ -7,9 +7,6 @@ "segments": [ { "foreground": "#ffffff", - "properties": { - "template": "" - }, "style": "plain", "type": "text" } @@ -21,20 +18,16 @@ "segments": [ { "foreground": "#0057b7", - "properties": { - "template": "\ue0c5" - }, "style": "plain", + "template": "\ue0c5", "type": "text" }, { "background": "#0057b7", "foreground": "#FBD951", "powerline_symbol": "\ue0c4", - "properties": { - "template": " \ue795 " - }, "style": "powerline", + "template": " \ue795 ", "type": "text" }, { @@ -42,10 +35,10 @@ "foreground": "#FBD951", "properties": { "home_icon": "\uf7dd", - "style": "mixed", - "template": "{{ .Path }} " + "style": "mixed" }, "style": "diamond", + "template": "{{ .Path }} ", "trailing_diamond": "\ue0b0", "type": "path" }, @@ -56,10 +49,10 @@ "properties": { "fetch_stash_count": true, "fetch_status": true, - "fetch_upstream_icon": true, - "template": " \uf1d3 {{ .HEAD }} {{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0}}\uf692 {{ .StashCount }}{{ end }}{{ if gt .WorktreeCount 0}} \uf1bb {{ .WorktreeCount }}{{ end }} " + "fetch_upstream_icon": true }, "style": "powerline", + "template": " \uf1d3 {{ .HEAD }} {{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0}}\uf692 {{ .StashCount }}{{ end }}{{ if gt .WorktreeCount 0}} \uf1bb {{ .WorktreeCount }}{{ end }} ", "type": "git" }, { @@ -75,33 +68,30 @@ "properties": { "fetch_stash_count": false, "fetch_status": false, - "fetch_upstream_icon": false, - "template": "\uf105" + "fetch_upstream_icon": false }, "style": "powerline", + "template": "\uf105", "type": "git" }, { "leading_diamond": "\ue0b0", - "properties": { - "template": "" - }, "style": "plain", "trailing_diamond": "\ue0b0", "type": "text" }, { + "background": "#ffd700", "foreground": "#0057b7", "foreground_templates": [ "{{ if gt .Code 0 }}#a30000{{ end }}" ], - "background": "#ffd700", "leading_diamond": "\ue0b0", "properties": { - "always_enabled": true, - "template": " {{ if gt .Code 0 }}\uf421 \uf119 {{ else }}\uf469 \u2665 {{ end }}" + "always_enabled": true }, "style": "diamond", + "template": " {{ if gt .Code 0 }}\uf421 \uf119 {{ else }}\uf469 \u2665 {{ end }}", "trailing_diamond": "\ue0b0", "type": "exit" } @@ -115,10 +105,8 @@ "background": "#0057b7", "foreground": "#FBD951", "leading_diamond": "\ue0b6", - "properties": { - "template": " \uf0ac <#111111>\ue0b2" - }, "style": "diamond", + "template": " \uf0ac <#111111>\ue0b2", "type": "text" }, { @@ -129,10 +117,10 @@ "properties": { "charged_icon": "\uf583 ", "charging_icon": "\uf492 ", - "discharging_icon": "\uf58c ", - "template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}% <#111111>\ue0b2" + "discharging_icon": "\uf58c " }, "style": "diamond", + "template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}% <#111111>\ue0b2", "type": "battery" }, { @@ -141,10 +129,10 @@ "invert_powerline": true, "leading_diamond": "\ue0b2", "properties": { - "always_enabled": true, - "template": " \uf608 {{ .FormattedMs }} <#111111>\ue0b2" + "always_enabled": true }, "style": "diamond", + "template": " \uf608 {{ .FormattedMs }} <#111111>\ue0b2", "type": "executiontime" }, { @@ -153,10 +141,10 @@ "invert_powerline": true, "leading_diamond": "\ue0b2", "properties": { - "template": " \uf5ef {{ .CurrentDate | date .Format }}", "time_format": "_2,15:04" }, "style": "diamond", + "template": " \uf5ef {{ .CurrentDate | date .Format }}", "trailing_diamond": "\ue0b4", "type": "time" } @@ -169,30 +157,24 @@ "segments": [ { "foreground": "#0057b7", - "properties": { - "template": "\ue0c5" - }, "style": "plain", + "template": "\ue0c5", "type": "text" }, { "background": "#0057b7", "foreground": "#ffd700", "powerline_symbol": "\ue0c4", - "properties": { - "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} " - }, "style": "powerline", + "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ", "type": "os" }, { "background": "#0057b7", "foreground": "#FBD951", "powerline_symbol": "\ue0b0", - "properties": { - "template": "\uf0e7 " - }, "style": "powerline", + "template": "\uf0e7 ", "type": "root" }, { @@ -200,10 +182,10 @@ "foreground": "#0057b7", "powerline_symbol": "\ue0b0", "properties": { - "display_host": false, - "template": " {{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }} " + "display_host": false }, "style": "powerline", + "template": " {{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }} ", "type": "session" } ], @@ -214,34 +196,26 @@ "segments": [ { "foreground": "#0057b7", - "properties": { - "template": "\uf004" - }, "style": "plain", + "template": "\uf004", "type": "text" }, { "foreground": "#FBD951", - "properties": { - "template": "\uf004" - }, "style": "plain", + "template": "\uf004", "type": "text" }, { "foreground": "#0057b7", - "properties": { - "template": "\uf004" - }, "style": "plain", + "template": "\uf004", "type": "text" }, { "foreground": "#FBD951", - "properties": { - "template": "\uf004 Ukraine" - }, "style": "plain", + "template": "\uf004 Ukraine", "type": "text" } ], @@ -250,5 +224,5 @@ ], "console_title_template": "{{if .Root}}Admin: {{end}} {{.Folder}}", "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/gmay.omp.json b/themes/gmay.omp.json index f3aec1f5..98fdf4d8 100644 --- a/themes/gmay.omp.json +++ b/themes/gmay.omp.json @@ -8,19 +8,15 @@ "background": "#3A86FF", "foreground": "#ffffff", "leading_diamond": "\ue0b6", - "properties": { - "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} " - }, "style": "diamond", + "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ", "type": "os" }, { "background": "#3A86FF", "foreground": "#ffffff", - "properties": { - "template": " {{ .UserName }}@{{ .HostName }} " - }, "style": "powerline", + "template": " {{ .UserName }}@{{ .HostName }} ", "type": "session" }, { @@ -28,10 +24,10 @@ "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { - "style": "full", - "template": " \ue5ff {{ .Path }} " + "style": "full" }, "style": "powerline", + "template": " \ue5ff {{ .Path }} ", "type": "path" }, { @@ -39,10 +35,10 @@ "foreground": "#193549", "powerline_symbol": "\ue0b0", "properties": { - "template": " {{ .CurrentDate | date .Format }} ", "time_format": "2006-01-02 15:04:05" }, "style": "powerline", + "template": " {{ .CurrentDate | date .Format }} ", "type": "time" }, { @@ -51,30 +47,26 @@ "powerline_symbol": "\ue0b0", "properties": { "fetch_stash_count": true, - "fetch_upstream_icon": true, - "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_upstream_icon": true }, "style": "powerline", + "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" }, { "background": "#6CA35E", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} " - }, "style": "powerline", + "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ", "type": "node" }, { "background": "#ffff66", "foreground": "#193549", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \uf0e7 " - }, "style": "powerline", + "template": " \uf0e7 ", "type": "root" }, { @@ -85,10 +77,10 @@ "foreground": "#ffffff", "leading_diamond": "\ue0b0", "properties": { - "always_enabled": true, - "template": " \uf7d4 " + "always_enabled": true }, "style": "diamond", + "template": " \uf7d4 ", "trailing_diamond": "\ue0b4", "type": "exit" } @@ -101,10 +93,8 @@ "segments": [ { "foreground": "#f1184c", - "properties": { - "template": "\uf7c6 " - }, "style": "plain", + "template": "\uf7c6 ", "type": "text" } ], @@ -112,5 +102,5 @@ } ], "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/grandpa-style.omp.json b/themes/grandpa-style.omp.json index 42216321..842615d7 100644 --- a/themes/grandpa-style.omp.json +++ b/themes/grandpa-style.omp.json @@ -7,19 +7,15 @@ { "background": "#000000", "foreground": "#dd1e1e", - "properties": { - "template": " \u26a1 " - }, "style": "plain", + "template": " \u26a1 ", "type": "root" }, { "background": "transparent", "foreground": "#ffffff", - "properties": { - "template": "{{ if .WSL }}WSL at {{ end }}{{.Icon}} " - }, "style": "plain", + "template": "{{ if .WSL }}WSL at {{ end }}{{.Icon}} ", "type": "os" }, { @@ -29,10 +25,10 @@ "folder_icon": "\uf6d7", "folder_separator_icon": " \ue0bd ", "home_icon": "\uf7db", - "style": "agnoster_short", - "template": " {{ .Path }} " + "style": "agnoster_short" }, "style": "plain", + "template": " {{ .Path }} ", "type": "path" }, { @@ -44,25 +40,25 @@ "{{ if gt .Behind 0 }}#B388FF{{ end }}" ], "foreground": "#000000", + "leading_diamond": "\ue0b0", "properties": { "fetch_stash_count": true, - "fetch_status": true, - "template": " {{ .HEAD }}{{ if .Staging.Changed }}<#FF6F00> \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_status": true }, "style": "diamond", - "leading_diamond": "\ue0b0", + "template": " {{ .HEAD }}{{ if .Staging.Changed }}<#FF6F00> \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" }, { "background": "#2ba1bb", "foreground": "#5a3d29", + "leading_diamond": "\ue0b0", "properties": { "style": "dallas", - "template": " {{ .FormattedMs }}s ", "threshold": 0 }, "style": "diamond", - "leading_diamond": "\ue0b0", + "template": " {{ .FormattedMs }}s ", "type": "executiontime" }, { @@ -70,10 +66,10 @@ "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { - "always_enabled": true, - "template": "{{ if gt .Code 0 }}\ue0b0 \uf12a {{ .Meaning }} \ue0b0{{ else }}\ue0b0{{ end }}" + "always_enabled": true }, "style": "plain", + "template": "{{ if gt .Code 0 }}\ue0b0 \uf12a {{ .Meaning }} \ue0b0{{ else }}\ue0b0{{ end }}", "type": "exit" } ], @@ -86,20 +82,18 @@ "background": "#5a3d29", "foreground": "#43CCEA", "leading_diamond": "\ue0c5", - "properties": { - "template": " {{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }} / {{ .HostName }}" - }, "style": "diamond", + "template": " {{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }} / {{ .HostName }}", "type": "session" }, { "background": "#5a3d29", "foreground": "#43CCEA", "properties": { - "template": " \ue0ba\ue0bc {{ .CurrentDate | date .Format }} ", "time_format": "3:04:05 PM" }, "style": "plain", + "template": " \ue0ba\ue0bc {{ .CurrentDate | date .Format }} ", "type": "time" } ], @@ -115,10 +109,10 @@ "{{ if gt .Code 0 }}#ff0000{{ end }}" ], "properties": { - "always_enabled": true, - "template": "\u276f " + "always_enabled": true }, "style": "plain", + "template": "\u276f ", "type": "exit" } ], @@ -127,5 +121,5 @@ ], "console_title_template": "{{if .Root}} \u26a1 {{end}}{{.Folder | replace \"~\" \"🏚\" }} @ {{.HostName}}", "osc99": true, - "version": 1 + "version": 2 } diff --git a/themes/half-life.omp.json b/themes/half-life.omp.json index d0435f3f..19d95f1f 100644 --- a/themes/half-life.omp.json +++ b/themes/half-life.omp.json @@ -6,27 +6,23 @@ "segments": [ { "foreground": "#7E46B6", - "properties": { - "template": "{{ .UserName }} " - }, "style": "plain", + "template": "{{ .UserName }} ", "type": "session" }, { "foreground": "#ffffff", - "properties": { - "template": "in " - }, "style": "plain", + "template": "in ", "type": "text" }, { "foreground": "#87FF00", "properties": { - "style": "full", - "template": "{{ .Path }} " + "style": "full" }, "style": "plain", + "template": "{{ .Path }} ", "type": "path" }, { @@ -43,23 +39,21 @@ "merge_icon": "", "rebase_icon": "", "revert_icon": "", - "tag_icon": "", - "template": "<#ffffff>on {{ .HEAD }}{{ if .Staging.Changed }}<#87FF00> \u25cf {{ .Staging.String }}{{ end }}{{ if .Working.Changed }}<#D75F00> \u25cf {{ .Working.String }}{{ end }} " + "tag_icon": "" }, "style": "plain", + "template": "<#ffffff>on {{ .HEAD }}{{ if .Staging.Changed }}<#87FF00> \u25cf {{ .Staging.String }}{{ end }}{{ if .Working.Changed }}<#D75F00> \u25cf {{ .Working.String }}{{ end }} ", "type": "git" }, { "foreground": "#D75F00", - "properties": { - "template": "λ " - }, "style": "plain", + "template": "λ ", "type": "text" } ], "type": "prompt" } ], - "version": 1 + "version": 2 } diff --git a/themes/honukai.omp.json b/themes/honukai.omp.json index b557dab9..ec63b360 100644 --- a/themes/honukai.omp.json +++ b/themes/honukai.omp.json @@ -6,10 +6,8 @@ "segments": [ { "foreground": "#FFFFFF", - "properties": { - "template": "<#0377C8># <#0377C8>{{ .UserName }} <#ffffff>in <#4A9207>{{ .HostName }} " - }, "style": "plain", + "template": "<#0377C8># <#0377C8>{{ .UserName }} <#ffffff>in <#4A9207>{{ .HostName }} ", "type": "session" }, { @@ -17,18 +15,16 @@ "properties": { "folder_icon": "\uf115", "folder_separator_icon": " \ue0b1 ", - "style": "full", - "template": " {{ .Path }} " + "style": "full" }, "style": "plain", + "template": " {{ .Path }} ", "type": "path" }, { "foreground": "#B8B80A", - "properties": { - "template": "<#ffffff>on git:{{ .HEAD }} " - }, "style": "plain", + "template": "<#ffffff>on git:{{ .HEAD }} ", "type": "git" } ], @@ -39,10 +35,8 @@ "segments": [ { "foreground": "#ffffff", - "properties": { - "template": "[{{ .CurrentDate | date .Format }}]" - }, "style": "plain", + "template": "[{{ .CurrentDate | date .Format }}]", "type": "time" } ], @@ -54,34 +48,26 @@ "segments": [ { "foreground": "#CECE04", - "properties": { - "template": "\uf0e7 " - }, "style": "plain", + "template": "\uf0e7 ", "type": "root" }, { "foreground": "#100e23", - "properties": { - "template": "\ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} " - }, "style": "plain", + "template": "\ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ", "type": "python" }, { "foreground": "#CB4B16", - "properties": { - "template": " {{ .Meaning }} " - }, "style": "plain", + "template": " {{ .Meaning }} ", "type": "exit" }, { "foreground": "#CC4B16", - "properties": { - "template": "\u279c " - }, "style": "plain", + "template": "\u279c ", "type": "text" } ], @@ -89,5 +75,5 @@ } ], "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/hotstick.minimal.omp.json b/themes/hotstick.minimal.omp.json index 6ad90e16..8c92a6e2 100644 --- a/themes/hotstick.minimal.omp.json +++ b/themes/hotstick.minimal.omp.json @@ -6,10 +6,8 @@ "segments": [ { "foreground": "yellow", - "properties": { - "template": " \ue0a2 " - }, "style": "plain", + "template": " \ue0a2 ", "type": "root" }, { @@ -17,10 +15,10 @@ "foreground": "black", "leading_diamond": "\ue0b6", "properties": { - "style": "mixed", - "template": " {{ .Path }} " + "style": "mixed" }, "style": "diamond", + "template": " {{ .Path }} ", "trailing_diamond": "\ue0b0", "type": "path" }, @@ -43,10 +41,10 @@ "merge_icon": "\u25f4 ", "no_commits_icon": "[no commits]", "rebase_icon": "\u2c62 ", - "tag_icon": "\u25b6 ", - "template": " {{ .HEAD }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }} " + "tag_icon": "\u25b6 " }, "style": "powerline", + "template": " {{ .HEAD }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }} ", "type": "git" } ], @@ -56,5 +54,5 @@ "console_title_template": "{{.Folder}}{{if .Root}} :: root{{end}} :: {{.Shell}}", "final_space": true, "osc99": true, - "version": 1 + "version": 2 } diff --git a/themes/hunk.omp.json b/themes/hunk.omp.json index bfa4cba8..325cb037 100644 --- a/themes/hunk.omp.json +++ b/themes/hunk.omp.json @@ -9,10 +9,10 @@ "foreground": "#ffffff", "leading_diamond": "\ue0b6", "properties": { - "template": "{{ if .WSL }}WSL at {{ end }}{{.Icon}}", "windows": "\ue62a" }, "style": "diamond", + "template": "{{ if .WSL }}WSL at {{ end }}{{.Icon}}", "type": "os" }, { @@ -20,20 +20,18 @@ "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { - "style": "full", - "template": "{{ .Path }} " + "style": "full" }, "style": "powerline", + "template": "{{ .Path }} ", "type": "path" }, { "background": "#f78fb3", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} " - }, "style": "powerline", + "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ", "type": "node" }, { @@ -41,10 +39,10 @@ "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { - "fetch_version": false, - "template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} " + "fetch_version": false }, "style": "powerline", + "template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ", "type": "python" }, { @@ -59,10 +57,10 @@ "powerline_symbol": "\ue0b0", "properties": { "fetch_status": true, - "fetch_upstream_icon": true, - "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }} " + "fetch_upstream_icon": true }, "style": "powerline", + "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }} ", "type": "git" } ], @@ -77,10 +75,10 @@ "invert_powerline": true, "powerline_symbol": "\ue0b2", "properties": { - "always_enabled": true, - "template": " {{ .FormattedMs }} " + "always_enabled": true }, "style": "powerline", + "template": " {{ .FormattedMs }} ", "type": "executiontime" }, { @@ -88,10 +86,8 @@ "foreground": "#FFD700", "invert_powerline": true, "powerline_symbol": "\ue0b2", - "properties": { - "template": " \u26a1" - }, "style": "powerline", + "template": " \u26a1", "type": "root" }, { @@ -99,20 +95,16 @@ "foreground": "#ffffff", "invert_powerline": true, "powerline_symbol": "\ue0b2", - "properties": { - "template": " {{ .UserName }} " - }, "style": "powerline", + "template": " {{ .UserName }} ", "type": "session" }, { "background": "#33658A", "foreground": "#ffffff", "invert_powerline": true, - "properties": { - "template": " {{ .Name }} " - }, "style": "diamond", + "template": " {{ .Name }} ", "trailing_diamond": "\ue0b4", "type": "shell" } @@ -124,25 +116,20 @@ "newline": true, "segments": [ { - "properties": { - "template": " \uf0e7 " - }, "style": "plain", + "template": " \uf0e7 ", "type": "root" }, { "foreground": "#ffffff", - "properties": { - "template": "<#69FF94>\u276f" - }, "style": "plain", + "template": "<#69FF94>\u276f", "type": "text" } ], "type": "prompt" } ], - "console_title": true, "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/huvix.omp.json b/themes/huvix.omp.json index 4239b26c..61497f47 100644 --- a/themes/huvix.omp.json +++ b/themes/huvix.omp.json @@ -6,44 +6,38 @@ "segments": [ { "foreground": "#FFE082", - "properties": { - "template": "@{{ .UserName }} \u279c" - }, "style": "plain", + "template": "@{{ .UserName }} \u279c", "type": "session" }, { "foreground": "#56B6C2", "properties": { - "style": "agnoster_short", - "template": " {{ .Path }} " + "style": "agnoster_short" }, "style": "plain", + "template": " {{ .Path }} ", "type": "path" }, { "foreground": "#7FD5EA", - "properties": { - "template": "(\ufcd1{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}) " - }, "style": "powerline", + "template": "(\ufcd1{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}) ", "type": "go" }, { "foreground": "#9e7eff", - "properties": { - "template": "(\ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}) " - }, "style": "powerline", + "template": "(\ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}) ", "type": "python" }, { "foreground": "#56B6C2", "properties": { - "branch_icon": "", - "template": "<#E8CC97>git({{ .HEAD }}<#E8CC97>) " + "branch_icon": "" }, "style": "plain", + "template": "<#E8CC97>git({{ .HEAD }}<#E8CC97>) ", "type": "git" }, { @@ -51,10 +45,10 @@ "properties": { "always_enabled": false, "style": "austin", - "template": "{{{ .FormattedMs }}}", "threshold": 100 }, "style": "powerline", + "template": "{{{ .FormattedMs }}}", "type": "executiontime" } ], @@ -74,10 +68,10 @@ "properties": { "charged_icon": "\ue22f ", "charging_icon": "\ue234 ", - "discharging_icon": "\ue231 ", - "template": "[{{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}\uf295]" + "discharging_icon": "\ue231 " }, "style": "powerline", + "template": "[{{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}\uf295]", "type": "battery" } ], @@ -85,5 +79,5 @@ } ], "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/if_tea.omp.json b/themes/if_tea.omp.json index 246661d1..ba405798 100644 --- a/themes/if_tea.omp.json +++ b/themes/if_tea.omp.json @@ -21,13 +21,13 @@ "mint": "\uf30f", "opensuse": "\uf314", "raspbian": "\uf315", - "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}}", "ubuntu": "\uf31b ", "windows": "\uf871 ", "wsl": "\ue712", "wsl_separator": " on " }, "style": "diamond", + "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}}", "trailing_diamond": "\ue0b2", "type": "os" }, @@ -35,19 +35,15 @@ "background": "#00c7fc", "foreground": "#000000", "leading_diamond": "\ue0c2", - "properties": { - "template": " \uf85a CPU: {{ round .PhysicalPercentUsed .Precision }}% | " - }, "style": "diamond", + "template": " \uf85a CPU: {{ round .PhysicalPercentUsed .Precision }}% | ", "type": "sysinfo" }, { "background": "#00c7fc", "foreground": "#000000", - "properties": { - "template": "RAM: {{ (div ((sub .PhysicalTotalMemory .PhysicalFreeMemory)|float64) 1000000000.0) }}/{{ (div .PhysicalTotalMemory 1000000000.0) }}GB \uf85a " - }, "style": "diamond", + "template": "RAM: {{ (div ((sub .PhysicalTotalMemory .PhysicalFreeMemory)|float64) 1000000000.0) }}/{{ (div .PhysicalTotalMemory 1000000000.0) }}GB \uf85a ", "trailing_diamond": "\ue0b2", "type": "sysinfo" }, @@ -57,10 +53,10 @@ "leading_diamond": "\ue0b2", "properties": { "style": "roundrock", - "template": " {{ .FormattedMs }} ", "threshold": 0 }, "style": "diamond", + "template": " {{ .FormattedMs }} ", "trailing_diamond": "\ue0b0", "type": "executiontime" } @@ -79,10 +75,10 @@ "fetch_stash_count": true, "fetch_status": true, "fetch_upstream_icon": true, - "fetch_worktree_count": true, - "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_worktree_count": true }, "style": "diamond", + "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "trailing_diamond": "\ue0b0", "type": "git" } @@ -95,20 +91,16 @@ "segments": [ { "foreground": "#91f2ff", - "properties": { - "template": "\u256d\u2500" - }, "style": "plain", + "template": "\u256d\u2500", "type": "text" }, { "background": "#91f2ff", "foreground": "#000000", "leading_diamond": "\ue0b2", - "properties": { - "template": " \uf489 {{ .Name }} " - }, "style": "diamond", + "template": " \uf489 {{ .Name }} ", "trailing_diamond": "\ue0b2", "type": "shell" }, @@ -117,19 +109,19 @@ "foreground": "#000000", "leading_diamond": "\ue0b2", "properties": { - "template": " \uf64f {{ .CurrentDate | date .Format }} \uf5ef ", "time_format": "3:04:05 PM | Monday" }, "style": "diamond", + "template": " \uf64f {{ .CurrentDate | date .Format }} \uf5ef ", "trailing_diamond": "\ue0b0", "type": "time" }, { "properties": { - "root_icon": "\uf292 ", - "template": " \uf0e7 " + "root_icon": "\uf292 " }, "style": "diamond", + "template": " \uf0e7 ", "type": "root" }, { @@ -140,10 +132,10 @@ "folder_icon": "\uf07b ", "folder_separator_icon": " \uf554 ", "home_icon": "\uf7db ", - "style": "agnoster_full", - "template": " \ue5ff {{ .Path }} " + "style": "agnoster_full" }, "style": "diamond", + "template": " \ue5ff {{ .Path }} ", "trailing_diamond": "\ue0b0", "type": "path" } @@ -160,10 +152,10 @@ "{{ if gt .Code 0 }}#ef5350{{ end }}" ], "properties": { - "always_enabled": true, - "template": " " + "always_enabled": true }, "style": "plain", + "template": " ", "type": "exit" } ], @@ -177,5 +169,5 @@ "foreground": "#FEF5ED", "template": "\ue285 " }, - "version": 1 + "version": 2 } diff --git a/themes/iterm2.omp.json b/themes/iterm2.omp.json index de449366..67a067f0 100644 --- a/themes/iterm2.omp.json +++ b/themes/iterm2.omp.json @@ -9,20 +9,18 @@ "foreground": "#fff", "powerline_symbol": "\ue0b0", "properties": { - "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}}", "windows": "\uf179" }, "style": "powerline", + "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}}", "type": "os" }, { "background": "#003543", "foreground": "#d2ff5e", "powerline_symbol": "\ue0b0", - "properties": { - "template": "{{ .UserName }} " - }, "style": "powerline", + "template": "{{ .UserName }} ", "type": "session" }, { @@ -31,10 +29,10 @@ "powerline_symbol": "\ue0b0", "properties": { "folder_separator_icon": "/", - "style": "full", - "template": " \ue5ff {{ .Path }} " + "style": "full" }, "style": "powerline", + "template": " \ue5ff {{ .Path }} ", "type": "path" }, { @@ -49,10 +47,10 @@ "powerline_symbol": "\ue0b0", "properties": { "fetch_stash_count": true, - "fetch_status": true, - "template": " {{ .HEAD }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_status": true }, "style": "powerline", + "template": " {{ .HEAD }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" }, { @@ -63,10 +61,10 @@ "foreground": "#242424", "powerline_symbol": "\ue0b0", "properties": { - "always_enabled": true, - "template": " \ufc8d " + "always_enabled": true }, "style": "powerline", + "template": " \ufc8d ", "type": "exit" } ], @@ -85,10 +83,8 @@ "foreground": "#242424", "invert_powerline": true, "powerline_symbol": "\ue0b2", - "properties": { - "template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}\uf295 \uf583 " - }, "style": "powerline", + "template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}\uf295 \uf583 ", "type": "battery" }, { @@ -98,10 +94,10 @@ "powerline_symbol": "\ue0b2", "properties": { "display_mode": "context", - "fetch_virtual_env": true, - "template": " \ue235 {{ .Venv }} " + "fetch_virtual_env": true }, "style": "powerline", + "template": " \ue235 {{ .Venv }} ", "type": "python" }, { @@ -109,10 +105,8 @@ "foreground": "#fff", "invert_powerline": true, "powerline_symbol": "\ue0b2", - "properties": { - "template": "<#fff> \uf64f {{ .CurrentDate | date .Format }} " - }, "style": "powerline", + "template": "<#fff> \uf64f {{ .CurrentDate | date .Format }} ", "type": "time" } ], @@ -124,18 +118,14 @@ "segments": [ { "foreground": "#FFD700", - "properties": { - "template": " \u26a1 " - }, "style": "plain", + "template": " \u26a1 ", "type": "root" }, { "foreground": "#f1184c", - "properties": { - "template": "🚀 " - }, "style": "plain", + "template": "🚀 ", "type": "text" } ], @@ -149,5 +139,5 @@ "foreground": "#FFD700", "template": "{{if .Root}}\u26a1 {{end}}🚀 " }, - "version": 1 + "version": 2 } diff --git a/themes/jandedobbeleer.omp.json b/themes/jandedobbeleer.omp.json index 7da9b61d..d82e3488 100644 --- a/themes/jandedobbeleer.omp.json +++ b/themes/jandedobbeleer.omp.json @@ -8,10 +8,8 @@ "background": "#c386f1", "foreground": "#ffffff", "leading_diamond": "\ue0b6", - "properties": { - "template": " {{ .UserName }} " - }, "style": "diamond", + "template": " {{ .UserName }} ", "trailing_diamond": "\ue0b0", "type": "session" }, @@ -22,10 +20,10 @@ "properties": { "folder_separator_icon": " \ue0b1 ", "home_icon": "~", - "style": "folder", - "template": " \uf74a {{ .Path }} " + "style": "folder" }, "style": "powerline", + "template": " \uf74a {{ .Path }} ", "type": "path" }, { @@ -43,10 +41,10 @@ "branch_max_length": 25, "fetch_stash_count": true, "fetch_status": true, - "fetch_upstream_icon": true, - "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_upstream_icon": true }, "style": "powerline", + "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "trailing_diamond": "\ue0b4", "type": "git" }, @@ -55,10 +53,10 @@ "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { - "fetch_version": true, - "template": " \uf898 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} " + "fetch_version": true }, "style": "powerline", + "template": " \uf898 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ", "type": "node" }, { @@ -66,10 +64,10 @@ "foreground": "#111111", "powerline_symbol": "\ue0b0", "properties": { - "fetch_version": true, - "template": " \ue626 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} " + "fetch_version": true }, "style": "powerline", + "template": " \ue626 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", "type": "go" }, { @@ -77,10 +75,10 @@ "foreground": "#111111", "powerline_symbol": "\ue0b0", "properties": { - "fetch_version": true, - "template": " \ue624 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} " + "fetch_version": true }, "style": "powerline", + "template": " \ue624 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", "type": "julia" }, { @@ -89,10 +87,10 @@ "powerline_symbol": "\ue0b0", "properties": { "display_mode": "files", - "fetch_virtual_env": false, - "template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} " + "fetch_virtual_env": false }, "style": "powerline", + "template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", "type": "python" }, { @@ -101,10 +99,10 @@ "powerline_symbol": "\ue0b0", "properties": { "display_mode": "files", - "fetch_version": true, - "template": " \ue791 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} " + "fetch_version": true }, "style": "powerline", + "template": " \ue791 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", "type": "ruby" }, { @@ -113,10 +111,10 @@ "powerline_symbol": "\ue0b0", "properties": { "display_mode": "files", - "fetch_version": false, - "template": " \uf0e7{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} " + "fetch_version": false }, "style": "powerline", + "template": " \uf0e7{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", "type": "azfunc" }, { @@ -127,30 +125,28 @@ "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { - "display_default": false, - "template": " \ue7ad {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} " + "display_default": false }, "style": "powerline", + "template": " \ue7ad {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} ", "type": "aws" }, { "background": "#ffff66", "foreground": "#111111", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \uf0ad " - }, "style": "powerline", + "template": " \uf0ad ", "type": "root" }, { "background": "#83769c", "foreground": "#ffffff", "properties": { - "always_enabled": true, - "template": "\ue0b0 \ufbab{{ .FormattedMs }}\u2800" + "always_enabled": true }, "style": "plain", + "template": "\ue0b0 \ufbab{{ .FormattedMs }}\u2800", "type": "executiontime" }, { @@ -160,10 +156,10 @@ ], "foreground": "#ffffff", "properties": { - "always_enabled": true, - "template": "\ue0b0 \ue23a " + "always_enabled": true }, "style": "diamond", + "template": "\ue0b0 \ue23a ", "trailing_diamond": "\ue0b4", "type": "exit" } @@ -175,10 +171,8 @@ { "background": "#0077c2", "foreground": "#ffffff", - "properties": { - "template": "<#0077c2,transparent>\ue0b6 \uf489 {{ .Name }} \ue0b2" - }, "style": "plain", + "template": "<#0077c2,transparent>\ue0b6 \uf489 {{ .Name }} \ue0b2", "type": "shell" }, { @@ -188,10 +182,10 @@ "powerline_symbol": "\ue0b2", "properties": { "paused_icon": "\uf04c ", - "playing_icon": "\uf04b ", - "template": " \uf167 {{ .Icon }}{{ if ne .Status \"stopped\" }}{{ .Artist }} - {{ .Track }}{{ end }} " + "playing_icon": "\uf04b " }, "style": "powerline", + "template": " \uf167 {{ .Icon }}{{ if ne .Status \"stopped\" }}{{ .Artist }} - {{ .Track }}{{ end }} ", "type": "ytm" }, { @@ -207,10 +201,10 @@ "properties": { "charged_icon": "\ue22f ", "charging_icon": "\ue234 ", - "discharging_icon": "\ue231 ", - "template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}\uf295 " + "discharging_icon": "\ue231 " }, "style": "powerline", + "template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}\uf295 ", "type": "battery" }, { @@ -218,10 +212,8 @@ "foreground": "#111111", "invert_powerline": true, "leading_diamond": "\ue0b2", - "properties": { - "template": " {{ .CurrentDate | date .Format }} " - }, "style": "diamond", + "template": " {{ .CurrentDate | date .Format }} ", "trailing_diamond": "\ue0b4", "type": "time" } @@ -231,5 +223,5 @@ ], "console_title_template": "{{ .Shell }} in {{ .Folder }}", "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/jblab_2021.omp.json b/themes/jblab_2021.omp.json index d848ec20..aea93f71 100644 --- a/themes/jblab_2021.omp.json +++ b/themes/jblab_2021.omp.json @@ -8,10 +8,8 @@ "background": "#0C212F", "foreground": "#FFFFFF", "leading_diamond": "\ue0b6", - "properties": { - "template": " {{ .Icon }} " - }, "style": "diamond", + "template": " {{ .Icon }} ", "trailing_diamond": "\ue0b0", "type": "os" }, @@ -19,10 +17,8 @@ "background": "#DE2121", "foreground": "#FFFFFF", "leading_diamond": "\ue0b0", - "properties": { - "template": " \uf0e7 " - }, "style": "diamond", + "template": " \uf0e7 ", "trailing_diamond": "\ue0b0", "type": "root" }, @@ -34,10 +30,10 @@ "folder_icon": "\uf6d7", "folder_separator_icon": " \ue0b1 ", "home_icon": "\uf7db", - "style": "agnoster_short", - "template": " {{ .Path }} " + "style": "agnoster_short" }, "style": "diamond", + "template": " {{ .Path }} ", "trailing_diamond": "\ue0b0", "type": "path" }, @@ -54,10 +50,10 @@ "properties": { "fetch_stash_count": true, "fetch_status": true, - "fetch_upstream_icon": true, - "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_upstream_icon": true }, "style": "powerline", + "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" }, { @@ -65,10 +61,10 @@ "foreground": "#FFFFFF", "leading_diamond": "\ue0b0", "properties": { - "template": " {{ .CurrentDate | date .Format }} ", "time_format": "15:04" }, "style": "diamond", + "template": " {{ .CurrentDate | date .Format }} ", "trailing_diamond": "\ue0b0", "type": "time" }, @@ -78,10 +74,10 @@ "leading_diamond": "\ue0b0", "properties": { "style": "dallas", - "template": " {{ .FormattedMs }}s ", "threshold": 0 }, "style": "diamond", + "template": " {{ .FormattedMs }}s ", "trailing_diamond": "\ue0b0", "type": "executiontime" }, @@ -89,10 +85,8 @@ "background": "#910000", "foreground": "#ffffff", "leading_diamond": "\ue0b0", - "properties": { - "template": " \uf12a {{ .Meaning }} " - }, "style": "diamond", + "template": " \uf12a {{ .Meaning }} ", "trailing_diamond": "\ue0b0", "type": "exit" } @@ -103,5 +97,5 @@ "console_title_template": "{{if .Root}} \u26a1 {{end}}{{.Folder | replace \"~\" \"🏠\"}} @ {{.HostName}}", "final_space": true, "osc99": true, - "version": 1 + "version": 2 } diff --git a/themes/jonnychipz.omp.json b/themes/jonnychipz.omp.json index dd4d7c3a..ddcc001c 100644 --- a/themes/jonnychipz.omp.json +++ b/themes/jonnychipz.omp.json @@ -8,9 +8,6 @@ "background": "#4707a8", "foreground": "#000000", "leading_diamond": "\ue0c2\ue0c2", - "properties": { - "template": "" - }, "style": "diamond", "type": "text" }, @@ -18,10 +15,8 @@ "background": "#4707a8", "foreground": "#ffffff", "leading_diamond": "\ue0b6", - "properties": { - "template": " {{ .UserName }}@{{ .HostName }} " - }, "style": "diamond", + "template": " {{ .UserName }}@{{ .HostName }} ", "trailing_diamond": "\ue0b0", "type": "session" }, @@ -29,10 +24,8 @@ "background": "#1a1af5", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \ufd03 {{ .Name }} " - }, "style": "powerline", + "template": " \ufd03 {{ .Name }} ", "type": "az" }, { @@ -42,10 +35,10 @@ ], "foreground": "#ffffff", "properties": { - "always_enabled": true, - "template": "\ue0b0\ue23a " + "always_enabled": true }, "style": "diamond", + "template": "\ue0b0\ue23a ", "trailing_diamond": "\ue0b4", "type": "exit" } @@ -74,20 +67,18 @@ "mint": "\uf30f", "opensuse": "\uf314", "raspbian": "\uf315", - "template": " {{ if .WSL }}\ue712 on {{ end }}{{ .Icon }}<#000000> \ue0b1", "ubuntu": "\uf31c", "windows": "\ue70f" }, "style": "diamond", + "template": " {{ if .WSL }}\ue712 on {{ end }}{{ .Icon }}<#000000> \ue0b1", "type": "os" }, { "background": "#000000", "foreground": "#ffffff", - "properties": { - "template": " \uf0e7<#ffffff> \ue0b1" - }, "style": "diamond", + "template": " \uf0e7<#ffffff> \ue0b1", "type": "root" }, { @@ -97,10 +88,10 @@ "folder_icon": "<#000000>\ue5fe ", "folder_separator_icon": "<#000000>\ue0b1 ", "home_icon": "\uf7db ", - "style": "agnoster_short", - "template": "<#000000> \ue5ff {{ .Path }} " + "style": "agnoster_short" }, "style": "diamond", + "template": "<#000000> \ue5ff {{ .Path }} ", "type": "path" }, { @@ -114,27 +105,22 @@ "properties": { "fetch_stash_count": true, "fetch_status": true, - "fetch_upstream_icon": true, - "template": "<#000000>\ue0b1 {{ .UpstreamIcon }}{{ .HEAD }}{{ if .Staging.Changed }}<#2FDA4E> \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }}<#E84855> \uf044 {{ .Working.String }}{{ end }} " + "fetch_upstream_icon": true }, "style": "diamond", + "template": "<#000000>\ue0b1 {{ .UpstreamIcon }}{{ .HEAD }}{{ if .Staging.Changed }}<#2FDA4E> \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }}<#E84855> \uf044 {{ .Working.String }}{{ end }} ", "type": "git" }, { "background": "#ffffff", "foreground": "#000000", - "properties": { - "template": " {{ .WorkspaceName }} " - }, "style": "powerline", + "template": " {{ .WorkspaceName }} ", "type": "terraform" }, { "background": "#ffffff", "foreground": "#000000", - "properties": { - "template": "" - }, "style": "diamond", "trailing_diamond": "\ue0b0", "type": "text" @@ -147,10 +133,8 @@ "segments": [ { "foreground": "#1a1af5", - "properties": { - "template": " \u276f " - }, "style": "plain", + "template": " \u276f ", "type": "text" } ], @@ -159,5 +143,5 @@ ], "console_title_template": "{{if .Root}}root :: {{end}}{{.Shell}} :: {{.Folder}}", "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/jtracey93.omp.json b/themes/jtracey93.omp.json index 6900b02d..4bf73822 100644 --- a/themes/jtracey93.omp.json +++ b/themes/jtracey93.omp.json @@ -9,30 +9,30 @@ "foreground": "#ffffff", "leading_diamond": "\ue0b6", "properties": { - "display_host": false, - "template": "{{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }} " + "display_host": false }, "style": "diamond", + "template": "{{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }} ", "type": "session" }, { "background": "lightYellow", "foreground": "#3f3f3f", "properties": { - "style": "full", - "template": " {{ .Path }} " + "style": "full" }, "style": "plain", + "template": " {{ .Path }} ", "type": "path" }, { "background": "#25AFF3", "foreground": "#ffffff", "properties": { - "fetch_status": true, - "template": " branch ({{ .HEAD }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}) " + "fetch_status": true }, "style": "plain", + "template": " branch ({{ .HEAD }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}) ", "type": "git" }, { @@ -42,20 +42,20 @@ "paused_icon": "", "playing_icon": "", "stopped_icon": "", - "template": " {{ .Icon }}{{ if ne .Status \"stopped\" }}{{ .Artist }} - {{ .Track }}{{ end }} ", "track_separator": " - " }, "style": "plain", + "template": " {{ .Icon }}{{ if ne .Status \"stopped\" }}{{ .Artist }} - {{ .Track }}{{ end }} ", "type": "spotify" }, { "background": "#cc00ff", "foreground": "#ffffff", "properties": { - "template": " {{ .CurrentDate | date .Format }} ", "time_format": "15:04:05" }, "style": "diamond", + "template": " {{ .CurrentDate | date .Format }} ", "trailing_diamond": "\ue0b0", "type": "time" } @@ -64,5 +64,5 @@ } ], "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/jv_sitecorian.omp.json b/themes/jv_sitecorian.omp.json index 854314da..888f2189 100644 --- a/themes/jv_sitecorian.omp.json +++ b/themes/jv_sitecorian.omp.json @@ -7,9 +7,6 @@ "segments": [ { "foreground": "#ffffff", - "properties": { - "template": "" - }, "style": "plain", "type": "text" } @@ -21,19 +18,14 @@ "segments": [ { "foreground": "#185F7B", - "properties": { - "template": "\ue0c5" - }, "style": "plain", + "template": "\ue0c5", "type": "text" }, { "background": "#185F7B", "foreground": "#185F7B", "powerline_symbol": "\ue0c4", - "properties": { - "template": "" - }, "style": "powerline", "type": "text" }, @@ -42,10 +34,10 @@ "foreground": "#ffffff", "properties": { "home_icon": "\uf7dd ", - "style": "mixed", - "template": "{{ .Path }} " + "style": "mixed" }, "style": "diamond", + "template": "{{ .Path }} ", "trailing_diamond": "\ue0b0", "type": "path" }, @@ -56,17 +48,14 @@ "properties": { "fetch_stash_count": true, "fetch_status": true, - "fetch_upstream_icon": true, - "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_upstream_icon": true }, "style": "powerline", + "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" }, { "leading_diamond": "\ue0b0", - "properties": { - "template": "" - }, "style": "plain", "trailing_diamond": "\ue0b0", "type": "text" @@ -79,10 +68,10 @@ "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { - "always_enabled": true, - "template": " {{ if gt .Code 0 }}\uf525{{ else }}\uf469 \u2665{{ end }} " + "always_enabled": true }, "style": "powerline", + "template": " {{ if gt .Code 0 }}\uf525{{ else }}\uf469 \u2665{{ end }} ", "type": "exit" } ], @@ -97,10 +86,10 @@ "invert_powerline": true, "leading_diamond": "\ue0c5", "properties": { - "template": " {{ .CurrentDate | date .Format }}<#ffffff> \uf64f ", "time_format": "3:04:05 PM" }, "style": "diamond", + "template": " {{ .CurrentDate | date .Format }}<#ffffff> \uf64f ", "trailing_diamond": "\ue0c4", "type": "time" }, @@ -110,10 +99,10 @@ "invert_powerline": true, "leading_diamond": "\ue0c5", "properties": { - "always_enabled": true, - "template": " {{ .FormattedMs }}<#ffffff> \uf252 " + "always_enabled": true }, "style": "diamond", + "template": " {{ .FormattedMs }}<#ffffff> \uf252 ", "trailing_diamond": "\ue0c4", "type": "executiontime" } @@ -126,40 +115,32 @@ "segments": [ { "foreground": "#2B2B2B", - "properties": { - "template": "\ue0c5" - }, "style": "plain", + "template": "\ue0c5", "type": "text" }, { "background": "#2B2B2B", "foreground": "#1CA6A3", "powerline_symbol": "\ue0c4", - "properties": { - "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} " - }, "style": "powerline", + "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ", "type": "os" }, { "background": "#2B2B2B", "foreground": "#FBD951", "powerline_symbol": "\ue0b0", - "properties": { - "template": "\uf0e7 " - }, "style": "powerline", + "template": "\uf0e7 ", "type": "root" }, { "background": "#DC291E", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", - "properties": { - "template": " {{ .UserName }} " - }, "style": "powerline", + "template": " {{ .UserName }} ", "type": "session" } ], @@ -171,10 +152,8 @@ { "background": "#000000", "foreground": "#666666", - "properties": { - "template": "\uf489 {{ .Name }}" - }, "style": "plain", + "template": "\uf489 {{ .Name }}", "type": "shell" } ], @@ -183,5 +162,5 @@ ], "console_title_template": "{{if .Root}}Admin: {{end}} {{.Folder}}", "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/kali.omp.json b/themes/kali.omp.json index 351a5324..c59f4e0c 100644 --- a/themes/kali.omp.json +++ b/themes/kali.omp.json @@ -10,38 +10,36 @@ "{{ if .Root }}red{{ end }}" ], "properties": { - "display_host": true, - "template": "\u250c\u2500\u2500({{ if .Root }}root💀{{ else }}{{ .UserName }}@{{ end }}{{ .HostName }})" + "display_host": true }, "style": "plain", + "template": "\u250c\u2500\u2500({{ if .Root }}root💀{{ else }}{{ .UserName }}@{{ end }}{{ .HostName }})", "type": "session" }, { "foreground": "yellow", "properties": { "fetch_version": false, - "fetch_virtual_env": true, - "template": "-[\ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }}{{ end }}{{ .Full }}{{ end }}]" + "fetch_virtual_env": true }, "style": "plain", + "template": "-[\ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }}{{ end }}{{ .Full }}{{ end }}]", "type": "python" }, { "foreground": "lightWhite", "properties": { "folder_separator_icon": "<#c0c0c0>/", - "style": "full", - "template": "-[{{ .Path }}]" + "style": "full" }, "style": "plain", + "template": "-[{{ .Path }}]", "type": "path" }, { "foreground": "white", - "properties": { - "template": "-[{{ .HEAD }}]" - }, "style": "plain", + "template": "-[{{ .HEAD }}]", "type": "git" } ], @@ -54,10 +52,10 @@ "foreground": "white", "properties": { "always_enabled": true, - "style": "round", - "template": " {{ .FormattedMs }} " + "style": "round" }, "style": "plain", + "template": " {{ .FormattedMs }} ", "type": "executiontime" }, { @@ -66,10 +64,10 @@ "{{ if gt .Code 0 }}red{{ end }}" ], "properties": { - "always_enabled": true, - "template": " {{ if gt .Code 0 }}\u2a2f{{else}}\u2713{{ end }} " + "always_enabled": true }, "style": "plain", + "template": " {{ if gt .Code 0 }}\u2a2f{{else}}\u2713{{ end }} ", "type": "exit" } ], @@ -81,15 +79,13 @@ "segments": [ { "foreground": "lightBlue", - "properties": { - "template": "\u2514\u2500{{ if .Root }}#{{ else }}${{ end }} " - }, "style": "plain", + "template": "\u2514\u2500{{ if .Root }}#{{ else }}${{ end }} ", "type": "text" } ], "type": "prompt" } ], - "version": 1 + "version": 2 } diff --git a/themes/lambda.omp.json b/themes/lambda.omp.json index e5b06815..2b178a3f 100644 --- a/themes/lambda.omp.json +++ b/themes/lambda.omp.json @@ -6,32 +6,28 @@ "segments": [ { "foreground": "#F5F5F5", - "properties": { - "template": "\ufb26 " - }, "style": "plain", + "template": "\ufb26 ", "type": "text" }, { "foreground": "#B80101", "properties": { - "style": "agnoster", - "template": " {{ .Path }} " + "style": "agnoster" }, "style": "plain", + "template": " {{ .Path }} ", "type": "path" }, { "foreground": "#B80101", - "properties": { - "template": " <#F5F5F5>git:{{ .HEAD }} " - }, "style": "plain", + "template": " <#F5F5F5>git:{{ .HEAD }} ", "type": "git" } ], "type": "prompt" } ], - "version": 1 + "version": 2 } diff --git a/themes/larserikfinholt.omp.json b/themes/larserikfinholt.omp.json index a7b161b1..562bbb13 100644 --- a/themes/larserikfinholt.omp.json +++ b/themes/larserikfinholt.omp.json @@ -8,10 +8,8 @@ "background": "#c386f1", "foreground": "#ffffff", "leading_diamond": "\ue0b6", - "properties": { - "template": " {{ .UserName }} " - }, "style": "diamond", + "template": " {{ .UserName }} ", "trailing_diamond": "\ue0b0", "type": "session" }, @@ -22,10 +20,10 @@ "properties": { "folder_separator_icon": " \ue0b1 ", "home_icon": "~", - "style": "folder", - "template": " \uf74a {{ .Path }} " + "style": "folder" }, "style": "powerline", + "template": " \uf74a {{ .Path }} ", "type": "path" }, { @@ -42,20 +40,20 @@ "branch_max_length": 25, "fetch_stash_count": true, "fetch_status": true, - "fetch_upstream_icon": true, - "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_upstream_icon": true }, "style": "powerline", + "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" }, { "background": "#83769c", "foreground": "#ffffff", "properties": { - "always_enabled": true, - "template": "\ue0b0 \ufbab{{ .FormattedMs }}\u2800" + "always_enabled": true }, "style": "plain", + "template": "\ue0b0 \ufbab{{ .FormattedMs }}\u2800", "type": "executiontime" }, { @@ -74,10 +72,10 @@ "properties": { "access_token": "0ccbd2ac1e37a5b84101468df3d367177fe02ab3", "http_timeout": 1500, - "refresh_token": "111111111111111111111111111111", - "template": " {{.Name}} {{.Ago}} {{.Icon}} " + "refresh_token": "111111111111111111111111111111" }, "style": "powerline", + "template": " {{.Name}} {{.Ago}} {{.Icon}} ", "type": "strava" }, { @@ -87,10 +85,10 @@ ], "foreground": "#ffffff", "properties": { - "always_enabled": true, - "template": "\ue0b0 \ue23a " + "always_enabled": true }, "style": "diamond", + "template": "\ue0b0 \ue23a ", "trailing_diamond": "\ue0b4", "type": "exit" } @@ -100,5 +98,5 @@ ], "console_title_template": "{{ .Shell }} in {{ .Folder }}", "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/marcduiker.omp.json b/themes/marcduiker.omp.json index 57b1d936..85c13dc3 100644 --- a/themes/marcduiker.omp.json +++ b/themes/marcduiker.omp.json @@ -10,10 +10,10 @@ "leading_diamond": "\ue0b6", "powerline_symbol": "\ue0b0", "properties": { - "style": "folder", - "template": " \ue5ff {{ .Path }} " + "style": "folder" }, "style": "diamond", + "template": " \ue5ff {{ .Path }} ", "trailing_diamond": "\ue0b0", "type": "path" }, @@ -30,10 +30,10 @@ "properties": { "fetch_stash_count": true, "fetch_status": true, - "fetch_upstream_icon": true, - "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_upstream_icon": true }, "style": "powerline", + "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" }, { @@ -44,10 +44,10 @@ "foreground": "#ffffff", "leading_diamond": "\ue0b0", "properties": { - "always_enabled": true, - "template": " \uf0e7 " + "always_enabled": true }, "style": "diamond", + "template": " \uf0e7 ", "trailing_diamond": "\ue0b4", "type": "exit" } @@ -56,5 +56,5 @@ } ], "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/markbull.omp.json b/themes/markbull.omp.json index 5211d94e..57285862 100644 --- a/themes/markbull.omp.json +++ b/themes/markbull.omp.json @@ -6,20 +6,16 @@ "segments": [ { "foreground": "#ffce7b", - "properties": { - "template": "\u250c " - }, "style": "plain", + "template": "\u250c ", "type": "text" }, { "background": "#ffce7b", "foreground": "#1d1626", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \uf26c {{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }}@{{ .HostName }} " - }, "style": "powerline", + "template": " \uf26c {{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }}@{{ .HostName }} ", "type": "session" }, { @@ -27,10 +23,10 @@ "foreground": "#fffef9", "powerline_symbol": "\ue0b0", "properties": { - "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ", "windows": "\uf17a" }, "style": "powerline", + "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ", "type": "os" }, { @@ -38,10 +34,10 @@ "foreground": "#fffef9", "powerline_symbol": "\ue0b0", "properties": { - "style": "full", - "template": "{{ path .Path .Location }} " + "style": "full" }, "style": "powerline", + "template": "{{ path .Path .Location }} ", "type": "path" }, { @@ -69,10 +65,10 @@ "git_icon": "\uf1d3 ", "github_icon": "\uf408 ", "gitlab_icon": "\uf296 ", - "tag_icon": "\uf412 ", - "template": " {{ if( .UpstreamIcon ) }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} <#ed1941>\uf044 {{.Working.String}}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} <#225a1f>\uf046 {{.Staging.String}}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{.StashCount}}{{ end }}{{ if gt .WorktreeCount 0 }}{{if .IsWorkTree}}<#1d953f>{{ end }} \uf1bb {{if .IsWorkTree}}{{ end }}{{.WorktreeCount}}{{ end }} " + "tag_icon": "\uf412 " }, "style": "powerline", + "template": " {{ if( .UpstreamIcon ) }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} <#ed1941>\uf044 {{.Working.String}}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} <#225a1f>\uf046 {{.Staging.String}}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{.StashCount}}{{ end }}{{ if gt .WorktreeCount 0 }}{{if .IsWorkTree}}<#1d953f>{{ end }} \uf1bb {{if .IsWorkTree}}{{ end }}{{.WorktreeCount}}{{ end }} ", "type": "git" }, { @@ -80,20 +76,18 @@ "foreground": "#fffef9", "powerline_symbol": "\ue0b0", "properties": { - "always_enabled": true, - "template": " \uf064 {{ .FormattedMs }} " + "always_enabled": true }, "style": "powerline", + "template": " \uf064 {{ .FormattedMs }} ", "type": "executiontime" }, { "background": "#ed1941", "foreground": "#fffef9", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \uf12a >>{{ .Meaning }} " - }, "style": "powerline", + "template": " \uf12a >>{{ .Meaning }} ", "type": "exit" } ], @@ -105,18 +99,14 @@ "segments": [ { "foreground": "#ffce7b", - "properties": { - "template": "\u2514" - }, "style": "plain", + "template": "\u2514", "type": "text" }, { "foreground": "#ffffff", - "properties": { - "template": " $" - }, "style": "plain", + "template": " $", "type": "text" } ], @@ -126,5 +116,5 @@ "console_title_template": "{{if .Root}}\u26a1 {{end}}{{.Folder}}", "final_space": true, "osc99": true, - "version": 1 + "version": 2 } diff --git a/themes/material.omp.json b/themes/material.omp.json index cff6eefd..022c8545 100644 --- a/themes/material.omp.json +++ b/themes/material.omp.json @@ -6,51 +6,47 @@ "segments": [ { "foreground": "#ffffff", - "properties": { - "template": "<#C591E8>\u276f<#69FF94>\u276f" - }, "style": "plain", + "template": "<#C591E8>\u276f<#69FF94>\u276f", "type": "text" }, { "foreground": "#56B6C2", "properties": { - "style": "folder", - "template": " {{ .Path }} " + "style": "folder" }, "style": "plain", + "template": " {{ .Path }} ", "type": "path" }, { "foreground": "#D0666F", "properties": { "branch_icon": "", - "fetch_status": false, - "template": "<#5FAAE8>git:({{ .HEAD }}<#5FAAE8>)" + "fetch_status": false }, "style": "plain", + "template": "<#5FAAE8>git:({{ .HEAD }}<#5FAAE8>)", "type": "git" }, { "foreground": "#DCB977", - "properties": { - "template": " \uf119" - }, "style": "plain", + "template": " \uf119", "type": "exit" }, { "foreground": "#66F68F", "properties": { - "template": " {{ .CurrentDate | date .Format }} ", "time_format": "15:04" }, "style": "plain", + "template": " {{ .CurrentDate | date .Format }} ", "type": "time" } ], "type": "prompt" } ], - "version": 1 + "version": 2 } diff --git a/themes/microverse-power.omp.json b/themes/microverse-power.omp.json index b20e2afe..8a8d5041 100644 --- a/themes/microverse-power.omp.json +++ b/themes/microverse-power.omp.json @@ -6,30 +6,24 @@ "segments": [ { "foreground": "#3A86FF", - "properties": { - "template": "{{ if .WSL }}WSL at {{ end }}{{.Icon}} " - }, "style": "plain", + "template": "{{ if .WSL }}WSL at {{ end }}{{.Icon}} ", "type": "os" }, { "background": "#242424", "foreground": "#f1184c", "powerline_symbol": "\ue0b0", - "properties": { - "template": " {{ .UserName }}" - }, "style": "powerline", + "template": " {{ .UserName }}", "type": "session" }, { "background": "#242424", "foreground": "#f1184c", "powerline_symbol": "\ue0b0", - "properties": { - "template": "- root \uf0e7" - }, "style": "powerline", + "template": "- root \uf0e7", "type": "root" }, { @@ -37,10 +31,10 @@ "foreground": "#FFBB00", "powerline_symbol": "\ue0b0", "properties": { - "template": "{{ .CurrentDate | date .Format }} ", "time_format": "2006-01-02 15:04:05" }, "style": "powerline", + "template": "{{ .CurrentDate | date .Format }} ", "type": "time" }, { @@ -49,10 +43,10 @@ "powerline_symbol": "\ue0b0", "properties": { "folder_separator_icon": "/", - "style": "full", - "template": "\ue5ff {{ .Path }} " + "style": "full" }, "style": "powerline", + "template": "\ue5ff {{ .Path }} ", "type": "path" }, { @@ -61,10 +55,10 @@ "powerline_symbol": "\ue0b0", "properties": { "fetch_stash_count": true, - "fetch_upstream_icon": true, - "template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_upstream_icon": true }, "style": "powerline", + "template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" }, { @@ -75,10 +69,10 @@ "foreground": "#242424", "powerline_symbol": "\ue0b0", "properties": { - "always_enabled": true, - "template": " \ufc8d " + "always_enabled": true }, "style": "powerline", + "template": " \ufc8d ", "type": "exit" } ], @@ -90,15 +84,13 @@ "segments": [ { "foreground": "#f1184c", - "properties": { - "template": "\u279c " - }, "style": "plain", + "template": "\u279c ", "type": "text" } ], "type": "prompt" } ], - "version": 1 + "version": 2 } diff --git a/themes/mojada.omp.json b/themes/mojada.omp.json index cb0d83a1..3682eb8f 100644 --- a/themes/mojada.omp.json +++ b/themes/mojada.omp.json @@ -17,11 +17,11 @@ "macos": "\uf179", "manjaro": "\uf312", "opensuse": "\uf314", - "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ", "ubuntu": "\uf31b", "windows": "\uf17a" }, "style": "diamond", + "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ", "type": "os" }, { @@ -29,20 +29,18 @@ "foreground": "#0077c2", "powerline_symbol": "\ue0b0", "properties": { - "display_host": true, - "template": "{{ .UserName }}<#000000>@<#e06c75>{{ .HostName }} " + "display_host": true }, "style": "powerline", + "template": "{{ .UserName }}<#000000>@<#e06c75>{{ .HostName }} ", "type": "session" }, { "background": "#e06c75", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \ue799\u2800" - }, "style": "powerline", + "template": " \ue799\u2800", "type": "root" }, { @@ -53,10 +51,10 @@ "folder_separator_icon": "/", "home_icon": "~", "max_depth": 2, - "style": "letter", - "template": " \ue5fe {{ .Path }} " + "style": "letter" }, "style": "powerline", + "template": " \ue5fe {{ .Path }} ", "type": "path" }, { @@ -72,18 +70,16 @@ "properties": { "fetch_stash_count": true, "fetch_status": true, - "fetch_upstream_icon": true, - "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_upstream_icon": true }, "style": "powerline", + "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" }, { "foreground": "#FFD54F", - "properties": { - "template": " {{if .Root}}#{{else}}${{end}}" - }, "style": "plain", + "template": " {{if .Root}}#{{else}}${{end}}", "type": "text" } ], @@ -94,19 +90,19 @@ { "foreground": "#ffffff", "properties": { - "always_enabled": true, - "template": " {{ if gt .Code 0 }}\uf659{{ else }}\uf633{{ end }} " + "always_enabled": true }, "style": "plain", + "template": " {{ if gt .Code 0 }}\uf659{{ else }}\uf633{{ end }} ", "type": "exit" }, { "foreground": "#ffffff", "properties": { - "always_enabled": true, - "template": "{{ .FormattedMs }} " + "always_enabled": true }, "style": "plain", + "template": "{{ .FormattedMs }} ", "type": "executiontime" }, { @@ -122,10 +118,10 @@ "properties": { "charged_icon": "\uf583 ", "charging_icon": "\uf588 ", - "discharging_icon": "\uf57d ", - "template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}% " + "discharging_icon": "\uf57d " }, "style": "powerline", + "template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}% ", "type": "battery" }, { @@ -133,10 +129,10 @@ "foreground": "#ffffff", "invert_powerline": true, "properties": { - "template": " {{ .CurrentDate | date .Format }} ", "time_format": "15:04 (Mon)" }, "style": "diamond", + "template": " {{ .CurrentDate | date .Format }} ", "trailing_diamond": "\ue0b4", "type": "time" } @@ -146,5 +142,5 @@ ], "console_title_template": "{{.UserName}}@{{.HostName}} : {{.Folder}}", "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/montys.omp.json b/themes/montys.omp.json index 57e00193..c7797e88 100644 --- a/themes/montys.omp.json +++ b/themes/montys.omp.json @@ -8,25 +8,22 @@ "background": "#003543", "foreground": "#00c983", "leading_diamond": "\ue0b6", - "properties": { - "template": "{{ .Icon }} {{ .HostName }} " - }, "style": "diamond", + "template": "{{ .Icon }} {{ .HostName }} ", "type": "os" }, - { "background": "#DA627D", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { - "home_icon": "\uf7db", "folder_icon": "\uf115", "folder_separator_icon": "\\", - "style": "full", - "template": " <#000>\uf07b \uf553 {{ .Path }} " + "home_icon": "\uf7db", + "style": "full" }, "style": "powerline", + "template": " <#000>\uf07b \uf553 {{ .Path }} ", "type": "path" }, { @@ -37,20 +34,18 @@ "branch_icon": " <#ffffff>\ue0a0 ", "fetch_stash_count": true, "fetch_status": false, - "fetch_upstream_icon": true, - "template": " \u279c ({{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }}) " + "fetch_upstream_icon": true }, "style": "powerline", + "template": " \u279c ({{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }}) ", "type": "git" }, { "background": "#76b367", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} " - }, "style": "powerline", + "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ", "type": "node" }, { @@ -58,10 +53,10 @@ "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { - "always_enabled": true, - "template": " \ufbab {{ .FormattedMs }} " + "always_enabled": true }, "style": "powerline", + "template": " \ufbab {{ .FormattedMs }} ", "type": "executiontime" }, { @@ -69,10 +64,10 @@ "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { - "template": " \uf017 {{ .CurrentDate | date .Format }} ", "time_format": "3:04 PM" }, "style": "powerline", + "template": " \uf017 {{ .CurrentDate | date .Format }} ", "type": "time" }, { @@ -83,10 +78,10 @@ "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { - "always_enabled": true, - "template": " {{ if gt .Code 0 }}\uf525{{ else }}\uf469{{ end }}" + "always_enabled": true }, "style": "diamond", + "template": " {{ if gt .Code 0 }}\uf525{{ else }}\uf469{{ end }}", "trailing_diamond": "\ue0b4", "type": "exit" } @@ -99,18 +94,14 @@ "segments": [ { "foreground": "#cd5e42", - "properties": { - "template": "\ue3bf " - }, "style": "plain", + "template": "\ue3bf ", "type": "root" }, { "foreground": "#CD4277", - "properties": { - "template": " <#45F1C2>{{ .UserName }} <#26C6DA>\u276f<#45F1C2>\u276f" - }, "style": "plain", + "template": " <#45F1C2>\u26a1{{ .UserName }} <#26C6DA>\u276f<#45F1C2>\u276f", "type": "text" } ], @@ -118,5 +109,5 @@ } ], "final_space": true, - "version": 1 -} \ No newline at end of file + "version": 2 +} diff --git a/themes/mt.omp.json b/themes/mt.omp.json index 1e562a6a..3f915c67 100644 --- a/themes/mt.omp.json +++ b/themes/mt.omp.json @@ -8,10 +8,8 @@ "background": "#B4009E", "foreground": "#ffffff", "leading_diamond": "\ue0b6", - "properties": { - "template": "{{ .UserName }} " - }, "style": "diamond", + "template": "{{ .UserName }} ", "type": "session" }, { @@ -19,10 +17,10 @@ "foreground": "#000000", "powerline_symbol": "\ue0b0", "properties": { - "style": "folder", - "template": " {{ .Path }} " + "style": "folder" }, "style": "powerline", + "template": " {{ .Path }} ", "type": "path" }, { @@ -33,30 +31,28 @@ "branch_icon": "", "fetch_stash_count": true, "fetch_status": false, - "fetch_upstream_icon": true, - "template": " \u279c ({{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }}) " + "fetch_upstream_icon": true }, "style": "powerline", + "template": " \u279c ({{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }}) ", "type": "git" }, { "background": "#4e903d", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} " - }, "style": "powerline", + "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ", "type": "node" }, { "background": "#16C60C", "foreground": "#ffffff", "properties": { - "template": " \u2665 {{ .CurrentDate | date .Format }} ", "time_format": "15:04" }, "style": "diamond", + "template": " \u2665 {{ .CurrentDate | date .Format }} ", "trailing_diamond": "\ue0b0", "type": "time" } @@ -65,5 +61,5 @@ } ], "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/negligible.omp.json b/themes/negligible.omp.json index fac489c0..7495312e 100644 --- a/themes/negligible.omp.json +++ b/themes/negligible.omp.json @@ -6,28 +6,26 @@ "segments": [ { "foreground": "cyan", - "properties": { - "template": "{{ if .WSL }}WSL at {{ end }}{{.Icon}}" - }, "style": "powerline", + "template": "{{ if .WSL }}WSL at {{ end }}{{.Icon}}", "type": "os" }, { "foreground": "cyan", "properties": { - "style": "full", - "template": " {{ .Path }} " + "style": "full" }, "style": "plain", + "template": " {{ .Path }} ", "type": "path" }, { "foreground": "#F1502F", "properties": { - "fetch_status": true, - "template": ":: {{ .HEAD }}{{ .BranchStatus }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }} " + "fetch_status": true }, "style": "plain", + "template": ":: {{ .HEAD }}{{ .BranchStatus }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }} ", "type": "git" } ], @@ -38,36 +36,30 @@ "segments": [ { "foreground": "red", - "properties": { - "template": "| root " - }, "style": "plain", + "template": "| root ", "type": "root" }, { "foreground": "#06A4CE", - "properties": { - "template": "| \ue798 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} " - }, "style": "powerline", + "template": "| \ue798 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", "type": "dart" }, { "foreground": "#6CA35E", - "properties": { - "template": "| \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} " - }, "style": "powerline", + "template": "| \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ", "type": "node" }, { "foreground": "#4584b6", "properties": { "display_mode": "context", - "fetch_virtual_env": true, - "template": "| \ue235 {{ .Venv }} " + "fetch_virtual_env": true }, "style": "plain", + "template": "| \ue235 {{ .Venv }} ", "type": "python" }, { @@ -79,18 +71,16 @@ "invert_powerline": true, "properties": { "charged_icon": "\uf00d ", - "charging_icon": "\ue234 ", - "template": "| {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }} \uf295 " + "charging_icon": "\ue234 " }, "style": "powerline", + "template": "| {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }} \uf295 ", "type": "battery" }, { "foreground": "lightGreen", - "properties": { - "template": "| {{ .CurrentDate | date .Format }} " - }, "style": "plain", + "template": "| {{ .CurrentDate | date .Format }} ", "type": "time" } ], @@ -106,15 +96,15 @@ "{{ if gt .Code 0 }}red{{ end }}" ], "properties": { - "always_enabled": true, - "template": "\u279c " + "always_enabled": true }, "style": "powerline", + "template": "\u279c ", "type": "exit" } ], "type": "prompt" } ], - "version": 1 + "version": 2 } diff --git a/themes/night-owl.omp.json b/themes/night-owl.omp.json index e7ed0056..f9b4c796 100644 --- a/themes/night-owl.omp.json +++ b/themes/night-owl.omp.json @@ -9,10 +9,10 @@ "foreground": "#011627", "leading_diamond": "\u256d\u2500\ue0b6", "properties": { - "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ", "windows": "\uf871" }, "style": "diamond", + "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ", "trailing_diamond": "\ue0b0", "type": "os" }, @@ -20,10 +20,8 @@ "background": "#ef5350", "foreground": "#ffeb95", "leading_diamond": "\ue0b0", - "properties": { - "template": " \uf292 " - }, "style": "diamond", + "template": " \uf292 ", "trailing_diamond": "\ue0b0", "type": "root" }, @@ -35,10 +33,10 @@ "folder_icon": "\uf07c ", "folder_separator_icon": " <#011627>\ue0b1 ", "home_icon": "\uf7db ", - "style": "agnoster", - "template": " {{ .Path }} " + "style": "agnoster" }, "style": "diamond", + "template": " {{ .Path }} ", "trailing_diamond": "\ue0b0", "type": "path" }, @@ -57,10 +55,10 @@ "fetch_stash_count": true, "fetch_status": true, "fetch_upstream_icon": true, - "fetch_worktree_count": true, - "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_worktree_count": true }, "style": "powerline", + "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" }, { @@ -69,10 +67,10 @@ "leading_diamond": "\ue0b0", "properties": { "style": "roundrock", - "template": " {{ .FormattedMs }} ", "threshold": 0 }, "style": "diamond", + "template": " {{ .FormattedMs }} ", "trailing_diamond": "\ue0b4", "type": "executiontime" } @@ -86,10 +84,8 @@ "background": "#d6deeb", "foreground": "#011627", "leading_diamond": "\ue0b6", - "properties": { - "template": "\uf489 {{ .Name }}" - }, "style": "diamond", + "template": "\uf489 {{ .Name }}", "trailing_diamond": "\ue0b2", "type": "shell" }, @@ -97,10 +93,8 @@ "background": "#8f43f3", "foreground": "#ffffff", "leading_diamond": "\ue0b2", - "properties": { - "template": " \uf85a {{ round .PhysicalPercentUsed .Precision }}% " - }, "style": "diamond", + "template": " \uf85a {{ round .PhysicalPercentUsed .Precision }}% ", "trailing_diamond": "\ue0b2", "type": "sysinfo" }, @@ -111,10 +105,10 @@ "properties": { "fetch_package_manager": true, "npm_icon": " <#cc3a3a>\ue71e ", - "template": "\ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}", "yarn_icon": " <#348cba>\uf61a" }, "style": "diamond", + "template": "\ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}", "trailing_diamond": "\ue0b2", "type": "node" }, @@ -122,10 +116,8 @@ "background": "#306998", "foreground": "#FFE873", "leading_diamond": "\ue0b2", - "properties": { - "template": "\ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}" - }, "style": "diamond", + "template": "\ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b2", "type": "python" }, @@ -133,10 +125,8 @@ "background": "#ffffff", "foreground": "#ec2729", "leading_diamond": "\ue0b2", - "properties": { - "template": "\ue738 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" - }, "style": "diamond", + "template": "\ue738 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b2", "type": "java" }, @@ -144,10 +134,8 @@ "background": "#787CB5", "foreground": "#000000", "leading_diamond": "\ue0b2", - "properties": { - "template": "\ue73d {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" - }, "style": "diamond", + "template": "\ue73d {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b2", "type": "php" }, @@ -155,10 +143,8 @@ "background": "#0e0e0e", "foreground": "#0d6da8", "leading_diamond": "\ue0b2", - "properties": { - "template": "\ue77f {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }}" - }, "style": "diamond", + "template": "\ue77f {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b2", "type": "dotnet" }, @@ -166,10 +152,8 @@ "background": "#ffffff", "foreground": "#06aad5", "leading_diamond": "\ue0b2", - "properties": { - "template": " \ufcd1 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} " - }, "style": "diamond", + "template": " \ufcd1 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", "trailing_diamond": "\ue0b2", "type": "go" }, @@ -177,10 +161,8 @@ "background": "#f3f0ec", "foreground": "#925837", "leading_diamond": "\ue0b2", - "properties": { - "template": " \ue7a8 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} " - }, "style": "diamond", + "template": " \ue7a8 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", "trailing_diamond": "\ue0b2", "type": "rust" }, @@ -188,10 +170,8 @@ "background": "#e1e8e9", "foreground": "#055b9c", "leading_diamond": "\ue0b2", - "properties": { - "template": " \ue798 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} " - }, "style": "diamond", + "template": " \ue798 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", "trailing_diamond": "\ue0b2", "type": "dart" }, @@ -199,10 +179,8 @@ "background": "#ffffff", "foreground": "#ce092f", "leading_diamond": "\ue0b2", - "properties": { - "template": " \ue753 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} " - }, "style": "diamond", + "template": " \ue753 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", "trailing_diamond": "\ue0b2", "type": "angular" }, @@ -210,10 +188,8 @@ "background": "#945bb3", "foreground": "#359a25", "leading_diamond": "\ue0b2", - "properties": { - "template": " <#ca3c34>\ue624 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} " - }, "style": "diamond", + "template": " <#ca3c34>\ue624 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", "trailing_diamond": "\ue0b2", "type": "julia" }, @@ -221,10 +197,8 @@ "background": "#ffffff", "foreground": "#9c1006", "leading_diamond": "\ue0b2", - "properties": { - "template": " \ue791 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} " - }, "style": "diamond", + "template": " \ue791 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", "trailing_diamond": "\ue0b2", "type": "ruby" }, @@ -232,10 +206,8 @@ "background": "#ffffff", "foreground": "#5398c2", "leading_diamond": "\ue0b2", - "properties": { - "template": " \uf104<#f5bf45>\uf0e7\uf105 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} " - }, "style": "diamond", + "template": " \uf104<#f5bf45>\uf0e7\uf105 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", "trailing_diamond": "\ue0b2", "type": "azfunc" }, @@ -243,10 +215,8 @@ "background": "#565656", "foreground": "#faa029", "leading_diamond": "\ue0b2", - "properties": { - "template": " \ue7ad {{.Profile}}{{if .Region}}@{{.Region}}{{end}} " - }, "style": "diamond", + "template": " \ue7ad {{.Profile}}{{if .Region}}@{{.Region}}{{end}} ", "trailing_diamond": "\ue0b2", "type": "aws" }, @@ -254,10 +224,8 @@ "background": "#316ce4", "foreground": "#ffffff", "leading_diamond": "\ue0b2", - "properties": { - "template": " \ufd31 {{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}} " - }, "style": "diamond", + "template": " \ufd31 {{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}} ", "trailing_diamond": "\ue0b2", "type": "kubectl" }, @@ -266,10 +234,10 @@ "foreground": "#d6deeb", "leading_diamond": "\ue0b2", "properties": { - "template": " \uf64f {{ .CurrentDate | date .Format }} ", "time_format": "15:04:05" }, "style": "diamond", + "template": " \uf64f {{ .CurrentDate | date .Format }} ", "trailing_diamond": "\ue0b4", "type": "time" } @@ -282,10 +250,8 @@ "segments": [ { "foreground": "#21c7a8", - "properties": { - "template": "\u2570\u2500" - }, "style": "plain", + "template": "\u2570\u2500", "type": "text" }, { @@ -294,10 +260,10 @@ "leading_diamond": "\ue0b6", "properties": { "playing_icon": "\uf1bc ", - "template": " {{ .Icon }}{{ if ne .Status \"stopped\" }}{{ .Artist }} - {{ .Track }}{{ end }} ", "track_separator": " ~ " }, "style": "diamond", + "template": " {{ .Icon }}{{ if ne .Status \"stopped\" }}{{ .Artist }} - {{ .Track }}{{ end }} ", "trailing_diamond": "\ue0c6 ", "type": "spotify" }, @@ -307,10 +273,10 @@ "{{ if gt .Code 0 }}#ef5350{{ end }}" ], "properties": { - "always_enabled": true, - "template": "\ue285\ue285 " + "always_enabled": true }, "style": "plain", + "template": "\ue285\ue285 ", "type": "exit" } ], @@ -324,5 +290,5 @@ "foreground": "#d6deeb", "template": "\ue285 " }, - "version": 1 + "version": 2 } diff --git a/themes/nordtron.omp.json b/themes/nordtron.omp.json index 10ae6284..a3424a9d 100644 --- a/themes/nordtron.omp.json +++ b/themes/nordtron.omp.json @@ -6,10 +6,8 @@ "segments": [ { "foreground": "#88c0d0", - "properties": { - "template": "<#5e81ac>\u250f[{{ .UserName }}<#5e81ac>]" - }, "style": "plain", + "template": "<#5e81ac>\u250f[{{ .UserName }}<#5e81ac>]", "type": "session" }, { @@ -17,42 +15,34 @@ "properties": { "fetch_stash_count": true, "fetch_status": true, - "fetch_upstream_icon": true, - "template": "<#5e81ac>--[{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }}<#8fbcbb> \u25cf {{ end }}{{ if .Staging.Changed }}<#88c0d0> \u25cf {{ end }}<#5e81ac>]" + "fetch_upstream_icon": true }, "style": "plain", + "template": "<#5e81ac>--[{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }}<#8fbcbb> \u25cf {{ end }}{{ if .Staging.Changed }}<#88c0d0> \u25cf {{ end }}<#5e81ac>]", "type": "git" }, { "foreground": "#b48ead", - "properties": { - "template": "<#5e81ac>--[{{.Profile}}{{if .Region}}@{{.Region}}{{end}}<#5e81ac>]" - }, "style": "plain", + "template": "<#5e81ac>--[{{.Profile}}{{if .Region}}@{{.Region}}{{end}}<#5e81ac>]", "type": "aws" }, { "foreground": "#b48ead", - "properties": { - "template": "<#5e81ac>--[{{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}}<#5e81ac>]" - }, "style": "plain", + "template": "<#5e81ac>--[{{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}}<#5e81ac>]", "type": "kubectl" }, { "foreground": "#d8dee9", - "properties": { - "template": "<#5e81ac>[\uf0e7<#5e81ac>]" - }, "style": "plain", + "template": "<#5e81ac>[\uf0e7<#5e81ac>]", "type": "root" }, { "foreground": "#d8dee9", - "properties": { - "template": "<#5e81ac>[x{{ .Meaning }}<#5e81ac>]" - }, "style": "plain", + "template": "<#5e81ac>[x{{ .Meaning }}<#5e81ac>]", "type": "exit" } ], @@ -65,10 +55,10 @@ { "foreground": "#88c0d0", "properties": { - "style": "full", - "template": "<#5e81ac>\u2516[{{ .Path }}<#5e81ac>]" + "style": "full" }, "style": "plain", + "template": "<#5e81ac>\u2516[{{ .Path }}<#5e81ac>]", "type": "path" } ], @@ -80,10 +70,8 @@ "segments": [ { "foreground": "#5e81ac", - "properties": { - "template": " \ue602 " - }, "style": "plain", + "template": " \ue602 ", "type": "text" } ], @@ -91,5 +79,5 @@ } ], "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/nu4a.omp.json b/themes/nu4a.omp.json index f1a2df68..4c14346e 100644 --- a/themes/nu4a.omp.json +++ b/themes/nu4a.omp.json @@ -11,10 +11,10 @@ ], "foreground": "#100e23", "properties": { - "display_host": false, - "template": "{{if .Root}} \uf0e7 {{.UserName}} {{else}} {{.UserName}} {{end}}" + "display_host": false }, "style": "powerline", + "template": "{{if .Root}} \uf0e7 {{.UserName}} {{else}} {{.UserName}} {{end}}", "type": "session" }, { @@ -30,30 +30,26 @@ "C:\\Windows": "\ue62a" }, "mixed_threshold": 8, - "style": "mixed", - "template": " {{ path .Path .Location }} " + "style": "mixed" }, "style": "powerline", + "template": " {{ path .Path .Location }} ", "type": "path" }, { "background": "#3feb56", "foreground": "#193549", "powerline_symbol": "\ue0b0", - "properties": { - "template": " {{ .HEAD }} " - }, "style": "powerline", + "template": " {{ .HEAD }} ", "type": "git" }, { "background": "#906cff", "foreground": "#100e23", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} " - }, "style": "powerline", + "template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ", "type": "python" } ], @@ -66,10 +62,8 @@ "background": "#ff4040", "foreground": "#ffffff", "leading_diamond": "\ue0c2", - "properties": { - "template": " \ue70f " - }, "style": "diamond", + "template": " \ue70f ", "trailing_diamond": "\ue0c0", "type": "exit" }, @@ -78,22 +72,22 @@ "foreground": "#fafafa", "leading_diamond": "\ue0b2", "properties": { - "style": "austin", - "template": " {{ .FormattedMs }} " + "style": "austin" }, "style": "diamond", + "template": " {{ .FormattedMs }} ", "type": "executiontime" } ], "type": "rprompt" } ], + "console_title_template": "{{if .Root}} \u26a1 {{end}}{{.UserName}} \u2794 📁{{.Folder}}", + "final_space": true, "secondary_prompt": { "background": "#ec9706", "foreground": "#100e23", "template": " \uf061 " }, - "console_title_template": "{{if .Root}} \u26a1 {{end}}{{.UserName}} \u2794 📁{{.Folder}}", - "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/paradox.omp.json b/themes/paradox.omp.json index 0a8f9012..08e7d66e 100644 --- a/themes/paradox.omp.json +++ b/themes/paradox.omp.json @@ -8,20 +8,16 @@ "background": "#ffe9aa", "foreground": "#100e23", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \uf0e7 " - }, "style": "powerline", + "template": " \uf0e7 ", "type": "root" }, { "background": "#ffffff", "foreground": "#100e23", "powerline_symbol": "\ue0b0", - "properties": { - "template": " {{ .UserName }}@{{ .HostName }} " - }, "style": "powerline", + "template": " {{ .UserName }}@{{ .HostName }} ", "type": "session" }, { @@ -31,40 +27,34 @@ "properties": { "folder_icon": "\uf115", "folder_separator_icon": " \ue0b1 ", - "style": "full", - "template": " {{ .Path }} " + "style": "full" }, "style": "powerline", + "template": " {{ .Path }} ", "type": "path" }, { "background": "#95ffa4", "foreground": "#193549", "powerline_symbol": "\ue0b0", - "properties": { - "template": " {{ .HEAD }} " - }, "style": "powerline", + "template": " {{ .HEAD }} ", "type": "git" }, { "background": "#906cff", "foreground": "#100e23", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} " - }, "style": "powerline", + "template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ", "type": "python" }, { "background": "#ff8080", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \ue20f " - }, "style": "powerline", + "template": " \ue20f ", "type": "exit" } ], @@ -76,15 +66,13 @@ "segments": [ { "foreground": "#007ACC", - "properties": { - "template": "\u276f " - }, "style": "plain", + "template": "\u276f ", "type": "text" } ], "type": "prompt" } ], - "version": 1 + "version": 2 } diff --git a/themes/pararussel.omp.json b/themes/pararussel.omp.json index 29ff077a..322f9c0e 100644 --- a/themes/pararussel.omp.json +++ b/themes/pararussel.omp.json @@ -6,36 +6,32 @@ "segments": [ { "foreground": "#ffffff", - "properties": { - "template": "<#C591E8>\u276f<#69FF94>\u276f " - }, "style": "plain", + "template": "<#C591E8>\u276f<#69FF94>\u276f ", "type": "text" }, { "foreground": "#56B6C2", "properties": { - "style": "folder", - "template": "{{ .Path }} " + "style": "folder" }, "style": "plain", + "template": "{{ .Path }} ", "type": "path" }, { "foreground": "#D0666F", "properties": { - "branch_icon": "", - "template": "<#5FAAE8>git:({{ .HEAD }}<#5FAAE8>)" + "branch_icon": "" }, "style": "plain", + "template": "<#5FAAE8>git:({{ .HEAD }}<#5FAAE8>)", "type": "git" }, { "foreground": "#DCB977", - "properties": { - "template": " \uf119 " - }, "style": "plain", + "template": " \uf119 ", "type": "exit" } ], @@ -48,10 +44,10 @@ "foreground": "#ffffff", "properties": { "command": "git log --pretty=format:%cr -1 || date +%H:%m:%S", - "shell": "bash", - "template": " {{ .Output }} " + "shell": "bash" }, "style": "plain", + "template": " {{ .Output }} ", "type": "command" } ], @@ -63,15 +59,13 @@ "segments": [ { "foreground": "#ffffff", - "properties": { - "template": "\uf441 " - }, "style": "plain", + "template": "\uf441 ", "type": "text" } ], "type": "prompt" } ], - "version": 1 + "version": 2 } diff --git a/themes/patriksvensson.omp.json b/themes/patriksvensson.omp.json index 7039ac8d..1bf1e7cc 100644 --- a/themes/patriksvensson.omp.json +++ b/themes/patriksvensson.omp.json @@ -8,10 +8,8 @@ { "foreground": "red", "powerline_symbol": "\ue0b0", - "properties": { - "template": "\uf0e7 " - }, "style": "plain", + "template": "\uf0e7 ", "type": "root" }, { @@ -20,10 +18,10 @@ "folder_icon": "\ue5ff", "folder_separator_icon": "/", "home_icon": "\uf7db", - "style": "agnoster", - "template": "{{ .Path }}" + "style": "agnoster" }, "style": "plain", + "template": "{{ .Path }}", "type": "path" }, { @@ -38,18 +36,16 @@ "fetch_stash_count": true, "fetch_status": true, "fetch_upstream_icon": true, - "github_icon": "\uf408 ", - "template": " on {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }}" + "github_icon": "\uf408 " }, "style": "plain", + "template": " on {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }}", "type": "git" }, { "foreground": "magenta", - "properties": { - "template": " [.NET] {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }} " - }, "style": "plain", + "template": " [.NET] {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }} ", "type": "dotnet" } ], @@ -62,18 +58,16 @@ { "foreground": "yellow", "properties": { - "template": "{{ .CurrentDate | date .Format }} ", "time_format": "15:04:05" }, "style": "plain", + "template": "{{ .CurrentDate | date .Format }} ", "type": "time" }, { "foreground": "green", - "properties": { - "template": "\u276f" - }, "style": "plain", + "template": "\u276f", "type": "text" } ], @@ -81,5 +75,5 @@ } ], "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/peru.omp.json b/themes/peru.omp.json index 33e6064e..9bb2a8a9 100644 --- a/themes/peru.omp.json +++ b/themes/peru.omp.json @@ -6,26 +6,20 @@ "segments": [ { "foreground": "#26C6DA", - "properties": { - "template": "{{ if .WSL }}WSL at {{ end }}{{.Icon}} " - }, "style": "plain", + "template": "{{ if .WSL }}WSL at {{ end }}{{.Icon}} ", "type": "os" }, { "foreground": "#26C6DA", - "properties": { - "template": "{{ .UserName }}@{{ .HostName }} " - }, "style": "diamond", + "template": "{{ .UserName }}@{{ .HostName }} ", "type": "session" }, { "foreground": "#0fc469", - "properties": { - "template": "\u279c \ue235({{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Major }}.{{ .Minor }}{{ end }}) " - }, "style": "powerline", + "template": "\u279c \ue235({{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Major }}.{{ .Minor }}{{ end }}) ", "type": "python" }, { @@ -37,10 +31,10 @@ ], "properties": { "fetch_status": true, - "fetch_upstream_icon": true, - "template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_upstream_icon": true }, "style": "plain", + "template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" } ], @@ -54,10 +48,8 @@ "background": "#6CA35E", "foreground": "#ffffff", "leading_diamond": "\ue0b6", - "properties": { - "template": "\ue718 {{ .Full }} " - }, "style": "diamond", + "template": "\ue718 {{ .Full }} ", "trailing_diamond": "\ue0b4", "type": "node" }, @@ -65,37 +57,35 @@ "background": "#4c1f5e", "foreground": "#ffffff", "leading_diamond": " \ue0b6", - "properties": { - "template": "\ue738 {{ .Full }} " - }, "style": "diamond", + "template": "\ue738 {{ .Full }} ", "trailing_diamond": "\ue0b4", "type": "java" }, { "properties": { - "always_enabled": true, - "template": " {{ if gt .Code 0 }}<#ff0000>\uf00d \ue23a{{ else }}<#23d18b>\uf42e \ue23a{{ end }} " + "always_enabled": true }, "style": "plain", + "template": " {{ if gt .Code 0 }}<#ff0000>\uf00d \ue23a{{ else }}<#23d18b>\uf42e \ue23a{{ end }} ", "type": "exit" }, { "foreground": "#bab02a", "properties": { - "template": "took \uf252 {{ .FormattedMs }} ", "threshold": 10 }, "style": "plain", + "template": "took \uf252 {{ .FormattedMs }} ", "type": "executiontime" }, { "foreground": "#00C5C7", "properties": { - "template": " {{ .CurrentDate | date .Format }} \uf017 ", "time_format": "15:04:05" }, "style": "plain", + "template": " {{ .CurrentDate | date .Format }} \uf017 ", "type": "time" } ], @@ -108,23 +98,21 @@ { "foreground": "#77E4F7", "properties": { - "style": "full", - "template": "{{ .Path }} " + "style": "full" }, "style": "plain", + "template": "{{ .Path }} ", "type": "path" }, { "foreground": "#43D426", - "properties": { - "template": "\u276f " - }, "style": "plain", + "template": "\u276f ", "type": "text" } ], "type": "prompt" } ], - "version": 1 + "version": 2 } diff --git a/themes/pixelrobots.omp.json b/themes/pixelrobots.omp.json index 97c302af..fb5c20f5 100644 --- a/themes/pixelrobots.omp.json +++ b/themes/pixelrobots.omp.json @@ -8,19 +8,14 @@ "background": "#ffea00", "foreground": "#000000", "leading_diamond": "\ue0c7\u2593", - "properties": { - "template": "" - }, "style": "diamond", "type": "text" }, { "background": "#ffea00", "foreground": "#000000", - "properties": { - "template": " \ufd31{{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}} " - }, "style": "powerline", + "template": " \ufd31{{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}} ", "type": "kubectl" }, { @@ -28,10 +23,10 @@ "foreground": "#000000", "powerline_symbol": "\ue0b0", "properties": { - "template": " \ufd03 {{ .Name }} [ {{ .Origin }} ] ", "source": "cli" }, "style": "powerline", + "template": " \ufd03 {{ .Name }} [ {{ .Origin }} ] ", "type": "az" }, { @@ -39,10 +34,10 @@ "foreground": "#FFFFFF", "powerline_symbol": "\ue0b0", "properties": { - "template": " \ufd03 {{ .Name }} [ {{ .Origin }} ] ", "source": "pwsh" }, "style": "powerline", + "template": " \ufd03 {{ .Name }} [ {{ .Origin }} ] ", "type": "az" } ], @@ -70,29 +65,25 @@ "mint": "\uf30f", "opensuse": "\uf314", "raspbian": "\uf315", - "template": " {{ if .WSL }}{{ .Icon }} on \ue70f{{ end }} <#ffea00>\uE0B1", "ubuntu": "\uf31c", "windows": "\ue70f" }, "style": "diamond", + "template": " {{ if .WSL }}{{ .Icon }} on \ue70f{{ end }} <#ffea00>\ue0b1", "type": "os" }, { "background": "#2f2f2f", "foreground": "#ffea00", - "properties": { - "template": " {{ if ne .Env.POSH_SESSION_DEFAULT_USER .UserName }}{{ .UserName }}{{ end }}<#ffea00> \ue0b1" - }, "style": "diamond", + "template": " {{ if ne .Env.POSH_SESSION_DEFAULT_USER .UserName }}{{ .UserName }}{{ end }}<#ffea00> \ue0b1", "type": "session" }, { "background": "#2f2f2f", "foreground": "#ffea00", - "properties": { - "template": " \uf0e7<#ffea00> \ue0b1" - }, "style": "diamond", + "template": " \uf0e7<#ffea00> \ue0b1", "type": "root" }, { @@ -102,10 +93,10 @@ "folder_icon": "<#B5B2C2>\ue5fe ", "folder_separator_icon": "<#ffea00>\ue0b1 ", "home_icon": "\uf7db ", - "style": "agnoster_short", - "template": "<#f2f200> \ue5ff {{ .Path }} " + "style": "agnoster_short" }, "style": "diamond", + "template": "<#f2f200> \ue5ff {{ .Path }} ", "type": "path" }, { @@ -119,18 +110,15 @@ "properties": { "fetch_stash_count": true, "fetch_status": true, - "fetch_upstream_icon": true, - "template": "<#ffea00>\ue0b1 {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }}<#E84855> \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#2FDA4E> \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_upstream_icon": true }, "style": "diamond", + "template": "<#ffea00>\ue0b1 {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }}<#E84855> \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#2FDA4E> \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" }, { "background": "#2f2f2f", "foreground": "#fafafa", - "properties": { - "template": "" - }, "style": "diamond", "trailing_diamond": "\ue0b0", "type": "text" @@ -143,10 +131,8 @@ "segments": [ { "foreground": "#ffea00", - "properties": { - "template": " \u276f " - }, "style": "plain", + "template": " \u276f ", "type": "text" } ], @@ -155,5 +141,5 @@ ], "console_title_template": "{{if .Root}}root :: {{end}}{{.Shell}} :: {{.Folder}}", "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/plague.omp.json b/themes/plague.omp.json index 99759ade..dfb7c0c9 100644 --- a/themes/plague.omp.json +++ b/themes/plague.omp.json @@ -8,10 +8,8 @@ "background": "#333333", "foreground": "#ff0000", "leading_diamond": "\ue0b6", - "properties": { - "template": " {{ .UserName }}@{{ .HostName }} " - }, "style": "diamond", + "template": " {{ .UserName }}@{{ .HostName }} ", "trailing_diamond": "\ue0b0", "type": "session" }, @@ -19,10 +17,8 @@ "background": "#1BD760", "foreground": "#434343", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \uf9c6 {{ .Icon }}{{ if ne .Status \"stopped\" }}{{ .Artist }} - {{ .Track }}{{ end }} " - }, "style": "powerline", + "template": " \uf9c6 {{ .Icon }}{{ if ne .Status \"stopped\" }}{{ .Artist }} - {{ .Track }}{{ end }} ", "type": "spotify" }, { @@ -30,10 +26,10 @@ "foreground": "#000000", "powerline_symbol": "\ue0b0", "properties": { - "style": "folder", - "template": " \ue5ff {{ .Path }} " + "style": "folder" }, "style": "powerline", + "template": " \ue5ff {{ .Path }} ", "type": "path" }, { @@ -42,40 +38,34 @@ "powerline_symbol": "\ue0b0", "properties": { "fetch_stash_count": true, - "fetch_upstream_icon": true, - "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_upstream_icon": true }, "style": "powerline", + "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" }, { "background": "#6CA35E", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} " - }, "style": "powerline", + "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ", "type": "node" }, { "background": "#203248", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \ufcb5 {{ .Name }} " - }, "style": "powerline", + "template": " \ufcb5 {{ .Name }} ", "type": "shell" }, { "background": "#ffff66", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \uf0e7 " - }, "style": "powerline", + "template": " \uf0e7 ", "type": "root" }, { @@ -85,10 +75,10 @@ ], "foreground": "#ffffff", "properties": { - "always_enabled": true, - "template": "\ue0b0 \ue23a \ue0b4" + "always_enabled": true }, "style": "plain", + "template": "\ue0b0 \ue23a \ue0b4", "type": "exit" } ], @@ -96,5 +86,5 @@ } ], "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/powerlevel10k_classic.omp.json b/themes/powerlevel10k_classic.omp.json index 29c3f922..08baddfc 100644 --- a/themes/powerlevel10k_classic.omp.json +++ b/themes/powerlevel10k_classic.omp.json @@ -7,47 +7,39 @@ { "background": "#546E7A", "foreground": "#26C6DA", - "properties": { - "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} \ue0b1" - }, "style": "plain", + "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} \ue0b1", "type": "os" }, { "background": "#546E7A", "foreground": "#26C6DA", - "properties": { - "template": " \uf0e7 " - }, "style": "plain", + "template": " \uf0e7 ", "type": "root" }, { "background": "#546E7A", "foreground": "#26C6DA", "properties": { - "style": "full", - "template": " {{ .Path }} " + "style": "full" }, "style": "plain", + "template": " {{ .Path }} ", "type": "path" }, { "background": "#546E7A", "foreground": "#D4E157", - "properties": { - "template": "<#26C6DA>\ue0b1 {{ .HEAD }} " - }, "style": "plain", + "template": "<#26C6DA>\ue0b1 {{ .HEAD }} ", "type": "git" }, { "background": "transparent", "foreground": "#546E7A", - "properties": { - "template": "\ue0b0" - }, "style": "plain", + "template": "\ue0b0", "type": "text" } ], @@ -60,20 +52,18 @@ "background": "#546E7A", "foreground": "#D4E157", "leading_diamond": "\ue0b2", - "properties": { - "template": " {{ .UserName }}@{{ .HostName }} <#26C6DA>\ue0b3 " - }, "style": "diamond", + "template": " {{ .UserName }}@{{ .HostName }} <#26C6DA>\ue0b3 ", "type": "session" }, { "background": "#546E7A", "foreground": "#D4E157", "properties": { - "template": " {{ .CurrentDate | date .Format }} \uf017 ", "time_format": "15:04:05" }, "style": "plain", + "template": " {{ .CurrentDate | date .Format }} \uf017 ", "type": "time" } ], @@ -89,15 +79,15 @@ "{{ if gt .Code 0 }}#FF5252{{ end }}" ], "properties": { - "always_enabled": true, - "template": "\u276f " + "always_enabled": true }, "style": "plain", + "template": "\u276f ", "type": "exit" } ], "type": "prompt" } ], - "version": 1 + "version": 2 } diff --git a/themes/powerlevel10k_lean.omp.json b/themes/powerlevel10k_lean.omp.json index 663de82e..cd5f62ed 100644 --- a/themes/powerlevel10k_lean.omp.json +++ b/themes/powerlevel10k_lean.omp.json @@ -7,10 +7,10 @@ { "foreground": "#00C5C7", "properties": { - "template": " {{ .CurrentDate | date .Format }} ", "time_format": "15:04:05" }, "style": "plain", + "template": " {{ .CurrentDate | date .Format }} ", "type": "time" } ], @@ -24,31 +24,27 @@ { "foreground": "#77E4F7", "properties": { - "style": "full", - "template": "{{ .Path }} " + "style": "full" }, "style": "plain", + "template": "{{ .Path }} ", "type": "path" }, { "foreground": "#FFE700", - "properties": { - "template": "{{ .HEAD }} " - }, "style": "plain", + "template": "{{ .HEAD }} ", "type": "git" }, { "foreground": "#43D426", - "properties": { - "template": "\u276f " - }, "style": "plain", + "template": "\u276f ", "type": "text" } ], "type": "prompt" } ], - "version": 1 + "version": 2 } diff --git a/themes/powerlevel10k_modern.omp.json b/themes/powerlevel10k_modern.omp.json index 2606a44a..5b8d7a7d 100644 --- a/themes/powerlevel10k_modern.omp.json +++ b/themes/powerlevel10k_modern.omp.json @@ -8,10 +8,8 @@ "background": "#ffffff", "foreground": "#000000", "leading_diamond": "\ue0b6", - "properties": { - "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} " - }, "style": "diamond", + "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ", "trailing_diamond": "\ue0b4", "type": "os" }, @@ -20,10 +18,10 @@ "foreground": "#000000", "powerline_symbol": "\ue0b4", "properties": { - "style": "full", - "template": " \uf0e7 " + "style": "full" }, "style": "powerline", + "template": " \uf0e7 ", "type": "root" }, { @@ -31,20 +29,18 @@ "foreground": "#ffffff", "powerline_symbol": "\ue0b4", "properties": { - "style": "full", - "template": " {{ .Path }} " + "style": "full" }, "style": "powerline", + "template": " {{ .Path }} ", "type": "path" }, { "background": "#D4E157", "foreground": "#000000", "powerline_symbol": "\ue0b4", - "properties": { - "template": " {{ .HEAD }} " - }, "style": "powerline", + "template": " {{ .HEAD }} ", "type": "git" } ], @@ -57,20 +53,16 @@ "background": "#D4E157", "foreground": "#000000", "leading_diamond": "\ue0b6", - "properties": { - "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} \ue0b6" - }, "style": "diamond", + "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} \ue0b6", "type": "python" }, { "background": "#7FD5EA", "foreground": "#ffffff", "leading_diamond": "\ue0b6", - "properties": { - "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \ue0b6" - }, "style": "diamond", + "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \ue0b6", "type": "go" }, { @@ -78,10 +70,10 @@ "foreground": "#000000", "leading_diamond": "\ue0b6", "properties": { - "template": " {{ .CurrentDate | date .Format }} ", "time_format": "15:04:05" }, "style": "diamond", + "template": " {{ .CurrentDate | date .Format }} ", "trailing_diamond": "\ue0b4", "type": "time" } @@ -98,15 +90,15 @@ "{{ if gt .Code 0 }}#FF5252{{ end }}" ], "properties": { - "always_enabled": true, - "template": "\u276f " + "always_enabled": true }, "style": "plain", + "template": "\u276f ", "type": "exit" } ], "type": "prompt" } ], - "version": 1 + "version": 2 } diff --git a/themes/powerlevel10k_rainbow.omp.json b/themes/powerlevel10k_rainbow.omp.json index 6fef39c9..b8f7ef8f 100644 --- a/themes/powerlevel10k_rainbow.omp.json +++ b/themes/powerlevel10k_rainbow.omp.json @@ -8,10 +8,8 @@ "background": "#d3d7cf", "foreground": "#000000", "leading_diamond": "\u256d\u2500\ue0b2", - "properties": { - "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} " - }, "style": "diamond", + "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ", "type": "os" }, { @@ -20,10 +18,10 @@ "powerline_symbol": "\ue0b0", "properties": { "home_icon": "~", - "style": "full", - "template": " \uf07c {{ .Path }} " + "style": "full" }, "style": "powerline", + "template": " \uf07c {{ .Path }} ", "type": "path" }, { @@ -40,10 +38,10 @@ "branch_icon": "\uf126 ", "fetch_stash_count": true, "fetch_status": true, - "fetch_upstream_icon": true, - "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_upstream_icon": true }, "style": "powerline", + "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" } ], @@ -58,10 +56,10 @@ "invert_powerline": true, "powerline_symbol": "\ue0b2", "properties": { - "fetch_version": true, - "template": " {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} \uf898 " + "fetch_version": true }, "style": "powerline", + "template": " {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} \uf898 ", "type": "node" }, { @@ -70,10 +68,10 @@ "invert_powerline": true, "powerline_symbol": "\ue0b2", "properties": { - "fetch_version": true, - "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \ue627 " + "fetch_version": true }, "style": "powerline", + "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \ue627 ", "type": "go" }, { @@ -82,10 +80,10 @@ "invert_powerline": true, "powerline_symbol": "\ue0b2", "properties": { - "fetch_version": true, - "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \ue624 " + "fetch_version": true }, "style": "powerline", + "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \ue624 ", "type": "julia" }, { @@ -95,10 +93,10 @@ "powerline_symbol": "\ue0b2", "properties": { "display_mode": "files", - "fetch_virtual_env": false, - "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \ue235 " + "fetch_virtual_env": false }, "style": "powerline", + "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \ue235 ", "type": "python" }, { @@ -108,10 +106,10 @@ "powerline_symbol": "\ue0b2", "properties": { "display_mode": "files", - "fetch_version": true, - "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \ue791 " + "fetch_version": true }, "style": "powerline", + "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \ue791 ", "type": "ruby" }, { @@ -121,10 +119,10 @@ "powerline_symbol": "\ue0b2", "properties": { "display_mode": "files", - "fetch_version": false, - "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \uf0e7" + "fetch_version": false }, "style": "powerline", + "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \uf0e7", "type": "azfunc" }, { @@ -136,10 +134,10 @@ "invert_powerline": true, "powerline_symbol": "\ue0b2", "properties": { - "display_default": false, - "template": " {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} \ue7ad " + "display_default": false }, "style": "powerline", + "template": " {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} \ue7ad ", "type": "aws" }, { @@ -147,10 +145,8 @@ "foreground": "#111111", "invert_powerline": true, "powerline_symbol": "\ue0b2", - "properties": { - "template": " \uf0ad " - }, "style": "powerline", + "template": " \uf0ad ", "type": "root" }, { @@ -158,10 +154,8 @@ "foreground": "#000000", "invert_powerline": true, "powerline_symbol": "\ue0b2", - "properties": { - "template": " {{ .FormattedMs }} \uf252 " - }, "style": "powerline", + "template": " {{ .FormattedMs }} \uf252 ", "type": "executiontime" }, { @@ -173,20 +167,18 @@ "invert_powerline": true, "powerline_symbol": "\ue0b2", "properties": { - "always_enabled": true, - "template": " {{ if gt .Code 0 }}{{ .Meaning }}{{ else }}\u2714{{ end }} " + "always_enabled": true }, "style": "powerline", + "template": " {{ if gt .Code 0 }}{{ .Meaning }}{{ else }}\u2714{{ end }} ", "type": "exit" }, { "background": "#d3d7cf", "foreground": "#000000", "invert_powerline": true, - "properties": { - "template": " {{ .CurrentDate | date .Format }} \uf017 " - }, "style": "diamond", + "template": " {{ .CurrentDate | date .Format }} \uf017 ", "trailing_diamond": "\ue0b0\u2500\u256e", "type": "time" } @@ -199,10 +191,8 @@ "segments": [ { "foreground": "#d3d7cf", - "properties": { - "template": "\u2570\u2500" - }, "style": "plain", + "template": "\u2570\u2500", "type": "text" } ], @@ -212,10 +202,8 @@ "segments": [ { "foreground": "#d3d7cf", - "properties": { - "template": "\u2500\u256f" - }, "style": "plain", + "template": "\u2500\u256f", "type": "text" } ], @@ -224,5 +212,5 @@ ], "console_title_template": "{{ .Shell }} in {{ .Folder }}", "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/powerline.omp.json b/themes/powerline.omp.json index 8b059428..efac8778 100644 --- a/themes/powerline.omp.json +++ b/themes/powerline.omp.json @@ -6,18 +6,14 @@ "segments": [ { "foreground": "#FFEE58", - "properties": { - "template": " \uf0e7 " - }, "style": "plain", + "template": " \uf0e7 ", "type": "root" }, { "foreground": "#ffffff", - "properties": { - "template": " {{ .UserName }}@{{ .HostName }} " - }, "style": "plain", + "template": " {{ .UserName }}@{{ .HostName }} ", "type": "session" }, { @@ -25,40 +21,34 @@ "foreground": "#100e23", "powerline_symbol": "\ue0b0", "properties": { - "style": "full", - "template": " {{ .Path }} " + "style": "full" }, "style": "powerline", + "template": " {{ .Path }} ", "type": "path" }, { "background": "#95ffa4", "foreground": "#193549", "powerline_symbol": "\ue0b0", - "properties": { - "template": " {{ .HEAD }} " - }, "style": "powerline", + "template": " {{ .HEAD }} ", "type": "git" }, { "background": "#906cff", "foreground": "#100e23", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} " - }, "style": "powerline", + "template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ", "type": "python" }, { "background": "#ff8080", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \ue20f " - }, "style": "powerline", + "template": " \ue20f ", "type": "exit" } ], @@ -66,5 +56,5 @@ } ], "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/pure.omp.json b/themes/pure.omp.json index d0d54884..ff742ddc 100644 --- a/themes/pure.omp.json +++ b/themes/pure.omp.json @@ -6,19 +6,17 @@ "segments": [ { "foreground": "#BF616A", - "properties": { - "template": "{{ .UserName }} " - }, "style": "plain", + "template": "{{ .UserName }} ", "type": "session" }, { "foreground": "#81A1C1", "properties": { - "style": "full", - "template": "{{ .Path }} " + "style": "full" }, "style": "plain", + "template": "{{ .Path }} ", "type": "path" } ], @@ -36,10 +34,10 @@ "fetch_stash_count": true, "fetch_status": true, "fetch_upstream_icon": true, - "github_icon": "", - "template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }}<#FFAFD7>*{{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "github_icon": "" }, "style": "plain", + "template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }}<#FFAFD7>*{{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" } ], @@ -51,10 +49,10 @@ { "foreground": "#A3BE8C", "properties": { - "style": "austin", - "template": " {{ .FormattedMs }} " + "style": "austin" }, "style": "plain", + "template": " {{ .FormattedMs }} ", "type": "executiontime" } ], @@ -70,10 +68,10 @@ "{{ if gt .Code 0 }}#BF616A{{ end }}" ], "properties": { - "always_enabled": true, - "template": "\u276f " + "always_enabled": true }, "style": "plain", + "template": "\u276f ", "type": "exit" } ], @@ -81,5 +79,5 @@ } ], "console_title_template": "{{if .Root}}(Admin){{end}} {{.PWD}}", - "version": 1 + "version": 2 } diff --git a/themes/remk.omp.json b/themes/remk.omp.json index 73233025..031596b5 100644 --- a/themes/remk.omp.json +++ b/themes/remk.omp.json @@ -8,40 +8,38 @@ "background": "lightMagenta", "foreground": "#ffffff", "leading_diamond": "\ue0b6", - "properties": { - "template": "{{ .UserName }} " - }, "style": "diamond", + "template": "{{ .UserName }} ", "type": "session" }, { "background": "lightYellow", "foreground": "#3f3f3f", "properties": { - "style": "folder", - "template": " {{ .Path }} " + "style": "folder" }, "style": "plain", + "template": " {{ .Path }} ", "type": "path" }, { "background": "lightCyan", "foreground": "#ffffff", "properties": { - "branch_icon": "", - "template": " git({{ .HEAD }}) " + "branch_icon": "" }, "style": "plain", + "template": " git({{ .HEAD }}) ", "type": "git" }, { "background": "lightGreen", "foreground": "#ffffff", "properties": { - "template": " {{ .CurrentDate | date .Format }} ", "time_format": "15:04" }, "style": "diamond", + "template": " {{ .CurrentDate | date .Format }} ", "trailing_diamond": "\ue0b0", "type": "time" } @@ -50,5 +48,5 @@ } ], "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/robbyrussel.omp.json b/themes/robbyrussel.omp.json index c9dd5c3c..1e310aab 100644 --- a/themes/robbyrussel.omp.json +++ b/themes/robbyrussel.omp.json @@ -6,36 +6,32 @@ "segments": [ { "foreground": "#98C379", - "properties": { - "template": "\u279c" - }, "style": "plain", + "template": "\u279c", "type": "text" }, { "foreground": "#56B6C2", "properties": { - "style": "folder", - "template": " {{ .Path }} " + "style": "folder" }, "style": "plain", + "template": " {{ .Path }} ", "type": "path" }, { "foreground": "#D0666F", "properties": { - "branch_icon": "", - "template": "<#5FAAE8>git:({{ .HEAD }}<#5FAAE8>)" + "branch_icon": "" }, "style": "plain", + "template": "<#5FAAE8>git:({{ .HEAD }}<#5FAAE8>)", "type": "git" }, { "foreground": "#BF616A", - "properties": { - "template": " \u2717" - }, "style": "plain", + "template": " \u2717", "type": "exit" } ], @@ -43,5 +39,5 @@ } ], "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/rudolfs-dark.omp.json b/themes/rudolfs-dark.omp.json index 843550af..3951d615 100644 --- a/themes/rudolfs-dark.omp.json +++ b/themes/rudolfs-dark.omp.json @@ -7,28 +7,22 @@ { "background": "#BF231D", "foreground": "#ffffff", - "properties": { - "template": " \uf0e7 " - }, "style": "plain", + "template": " \uf0e7 ", "type": "root" }, { "background": "#0A703E", "foreground": "#ffffff", - "properties": { - "template": " {{ .Icon }} " - }, "style": "plain", + "template": " {{ .Icon }} ", "type": "os" }, { "background": "#0A703E", "foreground": "#ffffff", - "properties": { - "template": "{{ .UserName }} " - }, "style": "plain", + "template": "{{ .UserName }} ", "type": "session" }, { @@ -38,10 +32,10 @@ "folder_icon": "\uf115", "folder_separator_icon": " \ue0b1 ", "max_depth": 2, - "style": "agnoster_short", - "template": " {{ .Path }} " + "style": "agnoster_short" }, "style": "plain", + "template": " {{ .Path }} ", "type": "path" }, { @@ -51,23 +45,21 @@ "branch_max_length": 30, "fetch_stash_count": false, "fetch_status": true, - "fetch_upstream_icon": true, - "template": "[ {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ]" + "fetch_upstream_icon": true }, "style": "plain", + "template": "[ {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ]", "type": "git" }, { "foreground": "#256C9D", - "properties": { - "template": "\ue0b0 " - }, "style": "plain", + "template": "\ue0b0 ", "type": "text" } ], "type": "prompt" } ], - "version": 1 + "version": 2 } diff --git a/themes/rudolfs-light.omp.json b/themes/rudolfs-light.omp.json index 5eecac6c..388328f5 100644 --- a/themes/rudolfs-light.omp.json +++ b/themes/rudolfs-light.omp.json @@ -7,28 +7,22 @@ { "background": "#E0E0E0", "foreground": "#BF231D", - "properties": { - "template": " \uf0e7 " - }, "style": "plain", + "template": " \uf0e7 ", "type": "root" }, { "background": "#E0E0E0", "foreground": "#EF7D00", - "properties": { - "template": " {{ .Icon }} " - }, "style": "plain", + "template": " {{ .Icon }} ", "type": "os" }, { "background": "#E0E0E0", "foreground": "#424242", - "properties": { - "template": "{{ .UserName }}" - }, "style": "plain", + "template": "{{ .UserName }}", "type": "session" }, { @@ -41,33 +35,31 @@ "properties": { "branch_max_length": 30, "fetch_status": true, - "fetch_upstream_icon": true, - "template": " [{{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }}<#BD6200> \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#053F22> \uf046 {{ .Staging.String }}{{ end }}] " + "fetch_upstream_icon": true }, "style": "plain", + "template": " [{{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }}<#BD6200> \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#053F22> \uf046 {{ .Staging.String }}{{ end }}] ", "type": "git" }, { "background": "#E0E0E0", "foreground": "#424242", "properties": { - "style": "full", - "template": " {{ .Path }}" + "style": "full" }, "style": "plain", + "template": " {{ .Path }}", "type": "path" }, { "foreground": "#E0E0E0", - "properties": { - "template": "\ue0b0 " - }, "style": "plain", + "template": "\ue0b0 ", "type": "text" } ], "type": "prompt" } ], - "version": 1 + "version": 2 } diff --git a/themes/schema.json b/themes/schema.json index cc28f5f2..7065be82 100644 --- a/themes/schema.json +++ b/themes/schema.json @@ -58,12 +58,6 @@ "description": "The string to display when the command is not available", "default": "" }, - "template": { - "type": "string", - "title": "Template text", - "description": "https://ohmyposh.dev/docs/config-templates", - "default": "" - }, "extra_prompt": { "type": "object", "default": {}, @@ -219,15 +213,18 @@ "foreground_templates": { "$ref": "#/definitions/color_templates" }, "background": { "$ref": "#/definitions/color" }, "background_templates": { "$ref": "#/definitions/color_templates" }, + "template": { + "type": "string", + "title": "Template text", + "description": "https://ohmyposh.dev/docs/config-templates", + "default": "" + }, "properties": { "type": "object", "title": "Segment Properties, used to change behavior/displaying", "description": "https://ohmyposh.dev/docs/config-overview#properties", "default": {}, "properties": { - "template": { - "$ref": "#/definitions/template" - }, "include_folders": { "type": "array", "title": "If specified, segment will only render in these folders", diff --git a/themes/slim.omp.json b/themes/slim.omp.json index d12a27b2..c94572da 100644 --- a/themes/slim.omp.json +++ b/themes/slim.omp.json @@ -22,29 +22,25 @@ "mint": "\uf30f", "opensuse": "\uf314", "raspbian": "\uf315", - "template": " {{ if .WSL }}\ue712 on {{ end }}{{ .Icon }}<#7a7a7a> \ue0b1", "ubuntu": "\uf31c", "windows": "\ue70f" }, "style": "diamond", + "template": " {{ if .WSL }}\ue712 on {{ end }}{{ .Icon }}<#7a7a7a> \ue0b1", "type": "os" }, { "background": "#2f2f2f", "foreground": "#fafafa", - "properties": { - "template": " {{ if ne .Env.POSH_SESSION_DEFAULT_USER .UserName }}<#77f5d6>{{ .UserName }}<#7a7a7a>\uf1fa<#2EEFBF>{{ end }}{{ .HostName }}<#7a7a7a> \ue0b1" - }, "style": "diamond", + "template": " {{ if ne .Env.POSH_SESSION_DEFAULT_USER .UserName }}<#77f5d6>{{ .UserName }}<#7a7a7a>\uf1fa<#2EEFBF>{{ end }}{{ .HostName }}<#7a7a7a> \ue0b1", "type": "session" }, { "background": "#2f2f2f", "foreground": "#ffff66", - "properties": { - "template": " \uf0e7<#7a7a7a> \ue0b1" - }, "style": "diamond", + "template": " \uf0e7<#7a7a7a> \ue0b1", "type": "root" }, { @@ -54,10 +50,10 @@ "folder_icon": "<#B5B2C2>\ue5fe ", "folder_separator_icon": "<#B5B2C2>\ue0bf ", "home_icon": "\uf015", - "style": "agnoster_short", - "template": "<#f2f200> \ue5ff {{ .Path }} " + "style": "agnoster_short" }, "style": "diamond", + "template": "<#f2f200> \ue5ff {{ .Path }} ", "type": "path" }, { @@ -71,18 +67,15 @@ "properties": { "fetch_stash_count": true, "fetch_status": true, - "fetch_upstream_icon": true, - "template": "<#7a7a7a>\ue0b1 {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }}<#E84855> \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#2FDA4E> \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_upstream_icon": true }, "style": "diamond", + "template": "<#7a7a7a>\ue0b1 {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }}<#E84855> \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#2FDA4E> \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" }, { "background": "#2f2f2f", "foreground": "#fafafa", - "properties": { - "template": "" - }, "style": "diamond", "trailing_diamond": "\ue0b0", "type": "text" @@ -97,47 +90,38 @@ "background": "#2f2f2f", "foreground": "#fafafa", "leading_diamond": "\ue0b2", - "properties": { - "template": "" - }, "style": "diamond", "type": "text" }, { "background": "#2f2f2f", "foreground": "#6CA35E", - "properties": { - "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}<#7a7a7a> \ue0b3" - }, "style": "diamond", + "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}<#7a7a7a> \ue0b3", "type": "node" }, { "background": "#2f2f2f", "foreground": "#96E072", - "properties": { - "template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}<#7a7a7a> \ue0b3" - }, "style": "diamond", + "template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}<#7a7a7a> \ue0b3", "type": "python" }, { "background": "#2f2f2f", "foreground": "#3891A6", - "properties": { - "template": " \ue77f {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }}<#7a7a7a> \ue0b3" - }, "style": "diamond", + "template": " \ue77f {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }}<#7a7a7a> \ue0b3", "type": "dotnet" }, { "background": "#2f2f2f", "foreground": "#fafafa", "properties": { - "template": " {{ .CurrentDate | date .Format }}<#007ACC> \uf64f ", "time_format": "15:04:05" }, "style": "diamond", + "template": " {{ .CurrentDate | date .Format }}<#007ACC> \uf64f ", "trailing_diamond": "\u2593\ue0c6", "type": "time" } @@ -150,10 +134,8 @@ "segments": [ { "foreground": "#7a7a7a", - "properties": { - "template": "~#@\u276f" - }, "style": "plain", + "template": "~#@\u276f", "type": "text" } ], @@ -164,20 +146,18 @@ "segments": [ { "foreground": "#7a7a7a", - "properties": { - "template": " \u276e " - }, "style": "plain", + "template": " \u276e ", "type": "text" }, { "foreground": "#FFCE5C", "properties": { "style": "roundrock", - "template": " {{ .FormattedMs }}<#fafafa> \uf252 ", "threshold": 500 }, "style": "plain", + "template": " {{ .FormattedMs }}<#fafafa> \uf252 ", "type": "executiontime" }, { @@ -186,10 +166,10 @@ "{{ if gt .Code 0 }}#E84855{{ end }}" ], "properties": { - "always_enabled": true, - "template": " \uf705 {{ if gt .Code 0 }}{{ .Code }}{{ end }} " + "always_enabled": true }, "style": "plain", + "template": " \uf705 {{ if gt .Code 0 }}{{ .Code }}{{ end }} ", "type": "exit" } ], @@ -198,5 +178,5 @@ ], "console_title_template": "{{if .Root}}root :: {{end}}{{.Shell}} :: {{.Folder}}", "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/slimfat.omp.json b/themes/slimfat.omp.json index 5131fa08..5dd1a861 100644 --- a/themes/slimfat.omp.json +++ b/themes/slimfat.omp.json @@ -22,29 +22,25 @@ "mint": "\uf30f", "opensuse": "\uf314", "raspbian": "\uf315", - "template": " {{ if .WSL }}\ue712 on {{ end }}{{ .Icon }}<#7a7a7a> \ue0b1", "ubuntu": "\uf31c", "windows": "\ue70f" }, "style": "diamond", + "template": " {{ if .WSL }}\ue712 on {{ end }}{{ .Icon }}<#7a7a7a> \ue0b1", "type": "os" }, { "background": "#2f2f2f", "foreground": "#fafafa", - "properties": { - "template": " {{ if ne .Env.POSH_SESSION_DEFAULT_USER .UserName }}<#77f5d6>{{ .UserName }}<#7a7a7a>\uf1fa<#2EEFBF>{{ .HostName }}{{ end }}<#7a7a7a> \ue0b1" - }, "style": "diamond", + "template": " {{ if ne .Env.POSH_SESSION_DEFAULT_USER .UserName }}<#77f5d6>{{ .UserName }}<#7a7a7a>\uf1fa<#2EEFBF>{{ .HostName }}{{ end }}<#7a7a7a> \ue0b1", "type": "session" }, { "background": "#2f2f2f", "foreground": "#ffff66", - "properties": { - "template": " \uf0e7<#7a7a7a> \ue0b1" - }, "style": "diamond", + "template": " \uf0e7<#7a7a7a> \ue0b1", "type": "root" }, { @@ -52,10 +48,10 @@ "foreground": "#fafafa", "properties": { "folder_icon": "<#B5B2C2>\ue5fe ", - "style": "full", - "template": "<#f2f200> \ue5ff {{ .Path }} " + "style": "full" }, "style": "diamond", + "template": "<#f2f200> \ue5ff {{ .Path }} ", "type": "path" }, { @@ -69,18 +65,15 @@ "properties": { "fetch_stash_count": true, "fetch_status": true, - "fetch_upstream_icon": true, - "template": "<#7a7a7a>\ue0b1 {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }}<#E84855> \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#2FDA4E> \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_upstream_icon": true }, "style": "diamond", + "template": "<#7a7a7a>\ue0b1 {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }}<#E84855> \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#2FDA4E> \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" }, { "background": "#2f2f2f", "foreground": "#fafafa", - "properties": { - "template": "" - }, "style": "diamond", "trailing_diamond": "\ue0b0", "type": "text" @@ -95,47 +88,38 @@ "background": "#2f2f2f", "foreground": "#fafafa", "leading_diamond": "\ue0b2", - "properties": { - "template": "" - }, "style": "diamond", "type": "text" }, { "background": "#2f2f2f", "foreground": "#6CA35E", - "properties": { - "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}<#7a7a7a> \ue0b3" - }, "style": "diamond", + "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}<#7a7a7a> \ue0b3", "type": "node" }, { "background": "#2f2f2f", "foreground": "#96E072", - "properties": { - "template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}<#7a7a7a> \ue0b3" - }, "style": "diamond", + "template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}<#7a7a7a> \ue0b3", "type": "python" }, { "background": "#2f2f2f", "foreground": "#3891A6", - "properties": { - "template": " \ue77f {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }}<#7a7a7a> \ue0b3" - }, "style": "diamond", + "template": " \ue77f {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }}<#7a7a7a> \ue0b3", "type": "dotnet" }, { "background": "#2f2f2f", "foreground": "#fafafa", "properties": { - "template": " {{ .CurrentDate | date .Format }}<#007ACC> \uf64f ", "time_format": "15:04:05" }, "style": "diamond", + "template": " {{ .CurrentDate | date .Format }}<#007ACC> \uf64f ", "trailing_diamond": "\u2593\ue0c6", "type": "time" } @@ -148,10 +132,8 @@ "segments": [ { "foreground": "#7a7a7a", - "properties": { - "template": " ~#@\u276f " - }, "style": "plain", + "template": " ~#@\u276f ", "type": "text" } ], @@ -162,20 +144,18 @@ "segments": [ { "foreground": "#7a7a7a", - "properties": { - "template": " \u276e " - }, "style": "plain", + "template": " \u276e ", "type": "text" }, { "foreground": "#FFCE5C", "properties": { "style": "roundrock", - "template": " {{ .FormattedMs }}<#fafafa> \uf252 ", "threshold": 500 }, "style": "plain", + "template": " {{ .FormattedMs }}<#fafafa> \uf252 ", "type": "executiontime" }, { @@ -184,10 +164,10 @@ "{{ if gt .Code 0 }}#E84855{{ end }}" ], "properties": { - "always_enabled": true, - "template": " \uf705 {{ if gt .Code 0 }}{{ .Code }}{{ end }} " + "always_enabled": true }, "style": "plain", + "template": " \uf705 {{ if gt .Code 0 }}{{ .Code }}{{ end }} ", "type": "exit" } ], @@ -196,5 +176,5 @@ ], "console_title_template": "{{if .Root}}root :: {{end}}{{.Shell}} :: {{.Folder}}", "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/smoothie.omp.json b/themes/smoothie.omp.json index d3b1f2c0..7e939b7d 100644 --- a/themes/smoothie.omp.json +++ b/themes/smoothie.omp.json @@ -7,10 +7,8 @@ "segments": [ { "foreground": "#b1ff4f", - "properties": { - "template": "[🐍 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}] " - }, "style": "powerline", + "template": "[🐍 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}] ", "type": "python" }, { @@ -18,10 +16,10 @@ "properties": { "folder_separator_icon": " 🢖 ", "home_icon": "\u2764", - "style": "letter", - "template": "<#eaeaea>\u23a7 \u27e8{{ .Path }}\u27e9 " + "style": "letter" }, "style": "plain", + "template": "<#eaeaea>\u23a7 \u27e8{{ .Path }}\u27e9 ", "type": "path" }, { @@ -29,19 +27,19 @@ "properties": { "branch_icon": "\u27df", "branch_identical_icon": "\u2261", - "fetch_status": true, - "template": "\u27e8{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \u2206{{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}\u27e9" + "fetch_status": true }, "style": "plain", + "template": "\u27e8{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \u2206{{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}\u27e9", "type": "git" }, { "foreground": "#98C379", "properties": { - "fetch_version": true, - "template": "<#ffffff>\u25e6 \u2622{{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} " + "fetch_version": true }, "style": "plain", + "template": "<#ffffff>\u25e6 \u2622{{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ", "type": "node" } ], @@ -52,20 +50,18 @@ "segments": [ { "foreground": "#fb0207", - "properties": { - "template": " ××× " - }, "style": "plain", + "template": " ××× ", "type": "exit" }, { "foreground": "#9966ff", "properties": { "style": "austin", - "template": "\u27e8{{ .FormattedMs }}\u27e9 <#eaeaea>\u23ab", "threshold": 0 }, "style": "plain", + "template": "\u27e8{{ .FormattedMs }}\u27e9 <#eaeaea>\u23ab", "type": "executiontime" } ], @@ -77,10 +73,8 @@ "segments": [ { "foreground": "#3ce6bf", - "properties": { - "template": "<#eaeaea>\u23a9\u27e9\u27e9\u27e9\u27e9\u27e9\u27e9 " - }, "style": "plain", + "template": "<#eaeaea>\u23a9\u27e9\u27e9\u27e9\u27e9\u27e9\u27e9 ", "type": "text" } ], @@ -92,15 +86,15 @@ { "foreground": "#f5f5a6", "properties": { - "template": "\u27e8{{ .CurrentDate | date .Format }}\u27e9 <#eaeaea>\u23ad", "time_format": "15:04:05" }, "style": "plain", + "template": "\u27e8{{ .CurrentDate | date .Format }}\u27e9 <#eaeaea>\u23ad", "type": "time" } ], "type": "rprompt" } ], - "version": 1 + "version": 2 } diff --git a/themes/sonicboom_dark.omp.json b/themes/sonicboom_dark.omp.json index 0ea12230..a35347b8 100644 --- a/themes/sonicboom_dark.omp.json +++ b/themes/sonicboom_dark.omp.json @@ -7,10 +7,8 @@ { "background": "#000000", "foreground": "#dd1e1e", - "properties": { - "template": " \u26a1" - }, "style": "plain", + "template": " \u26a1", "type": "root" }, { @@ -30,12 +28,12 @@ "mint": "\uf30f", "opensuse": "\uf314", "raspbian": "\uf315", - "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ", "ubuntu": "\uf31c", "windows": "\ue62a", "wsl": "\ue712" }, "style": "plain", + "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ", "type": "os" }, { @@ -45,10 +43,10 @@ "folder_icon": "\ue5fe", "folder_separator_icon": " \ue0bd ", "home_icon": "\uf7db", - "style": "agnoster_short", - "template": " {{ .Path }} " + "style": "agnoster_short" }, "style": "plain", + "template": " {{ .Path }} ", "type": "path" }, { @@ -56,10 +54,10 @@ "foreground": "#00ff0d", "properties": { "fetch_stash_count": true, - "fetch_status": true, - "template": "<#000000>\ue0b1 {{ .HEAD }}{{ if .Staging.Changed }}<#FF6F00> \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_status": true }, "style": "plain", + "template": "<#000000>\ue0b1 {{ .HEAD }}{{ if .Staging.Changed }}<#FF6F00> \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" }, { @@ -67,10 +65,10 @@ "foreground": "#ffffff", "properties": { "style": "dallas", - "template": "<#000000>\ue0b1 {{ .FormattedMs }}s ", "threshold": 0 }, "style": "diamond", + "template": "<#000000>\ue0b1 {{ .FormattedMs }}s ", "trailing_diamond": "\ue0b0", "type": "executiontime" } @@ -84,20 +82,18 @@ "background": "#272727", "foreground": "#43CCEA", "leading_diamond": "\ue0c5", - "properties": { - "template": " {{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }} / {{ .HostName }}" - }, "style": "diamond", + "template": " {{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }} / {{ .HostName }}", "type": "session" }, { "background": "#272727", "foreground": "#43CCEA", "properties": { - "template": "<#000000> \ue31e\uf0fb {{ .CurrentDate | date .Format }} ", "time_format": "3:04:05 PM" }, "style": "diamond", + "template": "<#000000> \ue31e\uf0fb {{ .CurrentDate | date .Format }} ", "trailing_diamond": "\ue0c5", "type": "time" } @@ -114,10 +110,10 @@ "{{ if gt .Code 0 }}#ff0000{{ end }}" ], "properties": { - "always_enabled": true, - "template": "\ufb0c " + "always_enabled": true }, "style": "plain", + "template": "\ufb0c ", "type": "exit" } ], @@ -126,5 +122,5 @@ ], "final_space": true, "osc99": true, - "version": 1 + "version": 2 } diff --git a/themes/sonicboom_light.omp.json b/themes/sonicboom_light.omp.json index fc25830e..f2a98a8b 100644 --- a/themes/sonicboom_light.omp.json +++ b/themes/sonicboom_light.omp.json @@ -7,10 +7,8 @@ { "background": "#000000", "foreground": "#dd1e1e", - "properties": { - "template": " \u26a1" - }, "style": "plain", + "template": " \u26a1", "type": "root" }, { @@ -30,12 +28,12 @@ "mint": "\uf30f", "opensuse": "\uf314", "raspbian": "\uf315", - "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ", "ubuntu": "\uf31c", "windows": "\ue62a", "wsl": "\ue712" }, "style": "plain", + "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ", "type": "os" }, { @@ -45,10 +43,10 @@ "folder_icon": "\ue5fe", "folder_separator_icon": " \ue0bd ", "home_icon": "\uf7db", - "style": "agnoster_short", - "template": " {{ .Path }} " + "style": "agnoster_short" }, "style": "plain", + "template": " {{ .Path }} ", "type": "path" }, { @@ -56,10 +54,10 @@ "foreground": "#00ff0d", "properties": { "fetch_stash_count": true, - "fetch_status": true, - "template": "<#000000>\ue0b1 {{ .HEAD }}{{ if .Staging.Changed }}<#FF6F00> \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_status": true }, "style": "plain", + "template": "<#000000>\ue0b1 {{ .HEAD }}{{ if .Staging.Changed }}<#FF6F00> \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" }, { @@ -67,10 +65,10 @@ "foreground": "#ffffff", "properties": { "style": "dallas", - "template": "<#000000>\ue0b1 {{ .FormattedMs }}s ", "threshold": 0 }, "style": "diamond", + "template": "<#000000>\ue0b1 {{ .FormattedMs }}s ", "trailing_diamond": "\ue0b0", "type": "executiontime" } @@ -84,20 +82,18 @@ "background": "#4d4d4d", "foreground": "#43CCEA", "leading_diamond": "\ue0c5", - "properties": { - "template": " {{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }} / {{ .HostName }}" - }, "style": "diamond", + "template": " {{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }} / {{ .HostName }}", "type": "session" }, { "background": "#4d4d4d", "foreground": "#43CCEA", "properties": { - "template": "<#000000> \ue31e\uf0fb {{ .CurrentDate | date .Format }} ", "time_format": "3:04:05 PM" }, "style": "diamond", + "template": "<#000000> \ue31e\uf0fb {{ .CurrentDate | date .Format }} ", "trailing_diamond": "\ue0c5", "type": "time" } @@ -114,10 +110,10 @@ "{{ if gt .Code 0 }}#ff0000{{ end }}" ], "properties": { - "always_enabled": true, - "template": "\ufb0c " + "always_enabled": true }, "style": "plain", + "template": "\ufb0c ", "type": "exit" } ], @@ -126,5 +122,5 @@ ], "final_space": true, "osc99": true, - "version": 1 + "version": 2 } diff --git a/themes/sorin.omp.json b/themes/sorin.omp.json index a8aced94..be1a4e5a 100644 --- a/themes/sorin.omp.json +++ b/themes/sorin.omp.json @@ -6,64 +6,52 @@ "segments": [ { "foreground": "#CB4B16", - "properties": { - "template": " {{ .Meaning }} " - }, "style": "plain", + "template": " {{ .Meaning }} ", "type": "exit" }, { "foreground": "#CECE04", - "properties": { - "template": " \uf0e7 " - }, "style": "plain", + "template": " \uf0e7 ", "type": "root" }, { "foreground": "#FFFFFF", - "properties": { - "template": "{{ .UserName }}@{{ .HostName }} " - }, "style": "plain", + "template": "{{ .UserName }}@{{ .HostName }} ", "type": "session" }, { "foreground": "#0973C0", "properties": { - "style": "full", - "template": "{{ .Path }} " + "style": "full" }, "style": "plain", + "template": "{{ .Path }} ", "type": "path" }, { "foreground": "#C1C106", - "properties": { - "template": "<#ffffff>git:{{ .HEAD }} " - }, "style": "plain", + "template": "<#ffffff>git:{{ .HEAD }} ", "type": "git" }, { "foreground": "#100e23", - "properties": { - "template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} " - }, "style": "plain", + "template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ", "type": "python" }, { "foreground": "#ffffff", - "properties": { - "template": "<#CB4B16>\u276f<#CACA02>\u276f<#4E9A06>\u276f " - }, "style": "plain", + "template": "<#CB4B16>\u276f<#CACA02>\u276f<#4E9A06>\u276f ", "type": "text" } ], "type": "prompt" } ], - "version": 1 + "version": 2 } diff --git a/themes/space.omp.json b/themes/space.omp.json index cdd62811..5f50b24e 100644 --- a/themes/space.omp.json +++ b/themes/space.omp.json @@ -7,97 +7,81 @@ { "foreground": "#26C6DA", "properties": { - "macos": "mac", - "template": "{{ if .WSL }}WSL at {{ end }}{{.Icon}}" + "macos": "mac" }, "style": "plain", + "template": "{{ if .WSL }}WSL at {{ end }}{{.Icon}}", "type": "os" }, { "foreground": "#26C6DA", - "properties": { - "template": " {{ .UserName }}: " - }, "style": "plain", + "template": " {{ .UserName }}: ", "type": "session" }, { "foreground": "lightGreen", "properties": { - "style": "folder", - "template": "{{ .Path }} " + "style": "folder" }, "style": "plain", + "template": "{{ .Path }} ", "type": "path" }, { "properties": { "branch_icon": "", - "fetch_stash_count": true, - "template": "<#ffffff>on {{ .HEAD }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_stash_count": true }, "style": "plain", + "template": "<#ffffff>on {{ .HEAD }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" }, { "foreground": "#906cff", - "properties": { - "template": "[\ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}] " - }, "style": "powerline", + "template": "[\ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}] ", "type": "python" }, { "foreground": "#7FD5EA", - "properties": { - "template": "[\ufcd1 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}] " - }, "style": "powerline", + "template": "[\ufcd1 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}] ", "type": "go" }, { "foreground": "#76b367", - "properties": { - "template": "[\ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}] " - }, "style": "powerline", + "template": "[\ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}] ", "type": "node" }, { "foreground": "#f44336", - "properties": { - "template": "[\ue791{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}] " - }, "style": "powerline", + "template": "[\ue791{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}] ", "type": "ruby" }, { "foreground": "#ea2d2e", - "properties": { - "template": "[\ue738 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}] " - }, "style": "powerline", + "template": "[\ue738 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}] ", "type": "java" }, { "foreground": "#4063D8", - "properties": { - "template": " \ue624 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} " - }, "style": "powerline", + "template": " \ue624 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", "type": "julia" }, { "foreground": "#FFD54F", - "properties": { - "template": "\u276f " - }, "style": "plain", + "template": "\u276f ", "type": "text" } ], "type": "prompt" } ], - "version": 1 + "version": 2 } diff --git a/themes/spaceship.omp.json b/themes/spaceship.omp.json index d974e4e7..9e4ba062 100644 --- a/themes/spaceship.omp.json +++ b/themes/spaceship.omp.json @@ -6,29 +6,27 @@ "segments": [ { "foreground": "lightYellow", - "properties": { - "template": "{{ .UserName }} " - }, "style": "plain", + "template": "{{ .UserName }} ", "type": "session" }, { "foreground": "cyan", "properties": { - "style": "folder", - "template": "<#ffffff>in {{ .Path }} " + "style": "folder" }, "style": "plain", + "template": "<#ffffff>in {{ .Path }} ", "type": "path" }, { "foreground": "#ff94df", "properties": { "branch_icon": " <#ff94df>\ue0a0 ", - "fetch_stash_count": true, - "template": "<#ffffff>on {{ .HEAD }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_stash_count": true }, "style": "plain", + "template": "<#ffffff>on {{ .HEAD }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" } ], @@ -40,10 +38,8 @@ "segments": [ { "foreground": "lightGreen", - "properties": { - "template": "\u276f" - }, "style": "plain", + "template": "\u276f", "type": "text" } ], @@ -51,5 +47,5 @@ } ], "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/star.omp.json b/themes/star.omp.json index 65ce5532..a7ca1aa5 100644 --- a/themes/star.omp.json +++ b/themes/star.omp.json @@ -6,45 +6,41 @@ "segments": [ { "foreground": "#E06C75", - "properties": { - "template": "root <#ffffff>in " - }, "style": "plain", + "template": "root <#ffffff>in ", "type": "root" }, { "foreground": "#55B9C4", "properties": { - "style": "folder", - "template": "{{ .Path }} " + "style": "folder" }, "style": "plain", + "template": "{{ .Path }} ", "type": "path" }, { "foreground": "#C678DD", "properties": { - "fetch_status": true, - "template": "<#ffffff>on {{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }} " + "fetch_status": true }, "style": "plain", + "template": "<#ffffff>on {{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }} ", "type": "git" }, { "foreground": "#98C379", "properties": { - "fetch_version": true, - "template": "<#ffffff>via \ue781 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} " + "fetch_version": true }, "style": "plain", + "template": "<#ffffff>via \ue781 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ", "type": "node" }, { "foreground": "#C94A16", - "properties": { - "template": "x " - }, "style": "plain", + "template": "x ", "type": "exit" } ], @@ -56,15 +52,13 @@ "segments": [ { "foreground": "#63F08C", - "properties": { - "template": "\u279c " - }, "style": "plain", + "template": "\u279c ", "type": "text" } ], "type": "prompt" } ], - "version": 1 + "version": 2 } diff --git a/themes/stelbent.minimal.omp.json b/themes/stelbent.minimal.omp.json index 70eeda14..454cbfce 100644 --- a/themes/stelbent.minimal.omp.json +++ b/themes/stelbent.minimal.omp.json @@ -6,27 +6,23 @@ "segments": [ { "foreground": "#007acc", - "properties": { - "template": "{{ .Name }}" - }, "style": "plain", + "template": "{{ .Name }}", "type": "shell" }, { "foreground": "#ff8080", - "properties": { - "template": " <#757575,>as root" - }, "style": "plain", + "template": " <#757575,>as root", "type": "root" }, { "foreground": "#689f38", "properties": { - "template": " <#757575,>| {{ .CurrentDate | date .Format }}", "time_format": "15:04:05" }, "style": "plain", + "template": " <#757575,>| {{ .CurrentDate | date .Format }}", "type": "time" } ], @@ -38,10 +34,8 @@ "segments": [ { "foreground": "#757575", - "properties": { - "template": "\u250c {{ .UserName }}@{{ .HostName }} " - }, "style": "plain", + "template": "\u250c {{ .UserName }}@{{ .HostName }} ", "type": "session" }, { @@ -49,10 +43,10 @@ "foreground": "#100e23", "powerline_symbol": "\ue0b0", "properties": { - "style": "folder", - "template": " {{ .Path }} " + "style": "folder" }, "style": "powerline", + "template": " {{ .Path }} ", "type": "path" }, { @@ -78,30 +72,26 @@ "merge_icon": "\u25f4 ", "no_commits_icon": "[no commits]", "rebase_icon": "\u2c62 ", - "tag_icon": "\u25b6 ", - "template": " {{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} \u2502{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} {{ .StashCount }}{{ end }} " + "tag_icon": "\u25b6 " }, "style": "powerline", + "template": " {{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} \u2502{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} {{ .StashCount }}{{ end }} ", "type": "git" }, { "background": "#ffee58", "foreground": "#100e23", "powerline_symbol": "\ue0b0", - "properties": { - "template": " {{ .WorkspaceName }} " - }, "style": "powerline", + "template": " {{ .WorkspaceName }} ", "type": "terraform" }, { "background": "#ff8080", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", - "properties": { - "template": " error " - }, "style": "powerline", + "template": " error ", "type": "exit" } ], @@ -113,18 +103,14 @@ "segments": [ { "foreground": "#757575", - "properties": { - "template": "\u2514 " - }, "style": "plain", + "template": "\u2514 ", "type": "text" }, { "foreground": "#ffffff", - "properties": { - "template": "$" - }, "style": "plain", + "template": "$", "type": "text" } ], @@ -133,5 +119,5 @@ ], "final_space": true, "osc99": true, - "version": 1 + "version": 2 } diff --git a/themes/takuya.omp.json b/themes/takuya.omp.json index 6b0cffa3..0e01fee0 100644 --- a/themes/takuya.omp.json +++ b/themes/takuya.omp.json @@ -8,20 +8,18 @@ "background": "#0077c2", "foreground": "#ffffff", "leading_diamond": "\u256d\u2500\ue0b6", - "properties": { - "template": " {{ .Name }} " - }, "style": "diamond", + "template": " {{ .Name }} ", "type": "shell" }, { "background": "#ef5350", "foreground": "#FFFB38", "properties": { - "root_icon": "\uf292", - "template": "\ue0b0 \uf0e7 " + "root_icon": "\uf292" }, "style": "diamond", + "template": "\ue0b0 \uf0e7 ", "type": "root" }, { @@ -29,10 +27,10 @@ "foreground": "#E4E4E4", "powerline_symbol": "\ue0b0", "properties": { - "style": "full", - "template": " {{ .Path }} " + "style": "full" }, "style": "powerline", + "template": " {{ .Path }} ", "type": "path" }, { @@ -48,10 +46,10 @@ "properties": { "branch_icon": "\ue725 ", "fetch_status": true, - "fetch_upstream_icon": true, - "template": " {{ .HEAD }} {{ if .Working.Changed }}{{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#ef5350> \uf046 {{ .Staging.String }}{{ end }} " + "fetch_upstream_icon": true }, "style": "powerline", + "template": " {{ .HEAD }} {{ if .Working.Changed }}{{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#ef5350> \uf046 {{ .Staging.String }}{{ end }} ", "type": "git" } ], @@ -67,10 +65,10 @@ "properties": { "fetch_package_manager": true, "npm_icon": " <#cc3a3a>\ue5fa ", - "template": "\ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}", "yarn_icon": " <#348cba>\uf61a" }, "style": "diamond", + "template": "\ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}", "trailing_diamond": "\ue0b4", "type": "node" }, @@ -79,10 +77,8 @@ "foreground": "#ffffff", "invert_powerline": true, "leading_diamond": " \ue0b6", - "properties": { - "template": " \uf5ef {{ .CurrentDate | date .Format }} " - }, "style": "diamond", + "template": " \uf5ef {{ .CurrentDate | date .Format }} ", "trailing_diamond": "\ue0b4", "type": "time" } @@ -95,10 +91,8 @@ "segments": [ { "foreground": "#21c7c7", - "properties": { - "template": "\u2570\u2500" - }, "style": "plain", + "template": "\u2570\u2500", "type": "text" }, { @@ -107,10 +101,10 @@ "{{ if gt .Code 0 }}#ef5350{{ end }}" ], "properties": { - "always_enabled": true, - "template": "\u276f " + "always_enabled": true }, "style": "plain", + "template": "\u276f ", "type": "exit" } ], @@ -118,5 +112,5 @@ } ], "osc99": true, - "version": 1 + "version": 2 } diff --git a/themes/the-unnamed.omp.json b/themes/the-unnamed.omp.json index b2417aa4..4f37ab35 100644 --- a/themes/the-unnamed.omp.json +++ b/themes/the-unnamed.omp.json @@ -7,45 +7,41 @@ { "foreground": "#15C2CB", "properties": { - "style": "folder", - "template": "{{ .Path }} " + "style": "folder" }, "style": "plain", + "template": "{{ .Path }} ", "type": "path" }, { "foreground": "#F141A8", "properties": { - "branch_icon": "\uE0A0 ", - "template": "<#F3EFF5>on {{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }} " + "branch_icon": "\ue0a0 " }, "style": "plain", + "template": "<#F3EFF5>on {{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }} ", "type": "git" }, { - "type": "project", - "style": "plain", "foreground": "#5EADF2", - "properties": { - "template": "{{if .Version}}<#F3EFF5>is \uf487 {{.Version}} {{end}}" - } + "style": "plain", + "template": "{{if .Version}}<#F3EFF5>is \uf487 {{.Version}} {{end}}", + "type": "project" }, { "foreground": "#44FFD2", "properties": { - "fetch_version": true, - "template": "<#F3EFF5>via \ue718 {{ .Full }} " + "fetch_version": true }, "style": "plain", + "template": "<#F3EFF5>via \ue718 {{ .Full }} ", "type": "node" }, { - "type": "npm", - "style": "plain", "foreground": "#FE4A49", - "properties": { - "template": "<#F3EFF5>and \ue71e {{.Full}} " - } + "style": "plain", + "template": "<#F3EFF5>and \ue71e {{.Full}} ", + "type": "npm" } ], "type": "prompt" @@ -56,15 +52,13 @@ "segments": [ { "foreground": "#FFE45E", - "properties": { - "template": "\u276F " - }, "style": "plain", + "template": "\u276f ", "type": "text" } ], "type": "prompt" } ], - "version": 1 + "version": 2 } diff --git a/themes/thecyberden.omp.json b/themes/thecyberden.omp.json index ff9435c3..db62f57c 100644 --- a/themes/thecyberden.omp.json +++ b/themes/thecyberden.omp.json @@ -1,117 +1,109 @@ { - "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", - "blocks": [ + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", + "blocks": [ + { + "alignment": "left", + "segments": [ { - "alignment": "left", - "segments": [ - { - "background": "#2e9599", - "foreground": "#ffffff", - "leading_diamond": "\ue0b6", - "powerline_symbol": "\ue0b0", - "properties": { - "template": "\ufcbe {{ .HostName }} " - }, - "style": "diamond", - "type": "session" - }, - { - "background": "#0080ff", - "foreground": "#ffffff", - "powerline_symbol": "\ue0b0", - "properties": { - "style": "full", - "template": " \ue5ff {{ .Path }} " - }, - "style": "powerline", - "type": "path" - }, - { - "background": "#c19c00", - "foreground": "#000000", - "powerline_symbol": "\ue0b0", - "background_templates": [ - "{{ if or (.Working.Changed) (.Staging.Changed) }}#FFEB3B{{ end }}", - "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#FFA300{{ end }}", - "{{ if gt .Ahead 0 }}#FF7070{{ end }}", - "{{ if gt .Behind 0 }}#90F090{{ end }}" - ], - "properties": { - "fetch_stash_count": true, - "fetch_status": true, - "fetch_upstream_icon": true, - "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " - }, - "style": "powerline", - "type": "git" - }, - { - "background": "#2e9599", - "background_templates": [ - "{{ if gt .Code 0 }}#f1184c{{ end }}" - ], - "foreground": "#ffffff", - "properties": { - "always_enabled": true, - "template": " " - }, - "style": "diamond", - "trailing_diamond": "\ue0b4", - "type": "exit" - } - ], - "type": "prompt" + "background": "#2e9599", + "foreground": "#ffffff", + "leading_diamond": "\ue0b6", + "powerline_symbol": "\ue0b0", + "style": "diamond", + "template": "\ufcbe {{ .HostName }} ", + "type": "session" }, { - "alignment": "right", - "segments": [ - { - "background": "#2e9599", - "foreground": "#ffffff", - "leading_diamond": "\ue0b6", - "properties": { - "template": " {{ .CurrentDate | date .Format }} ", - "time_format": "15:04:05" - }, - "style": "diamond", - "trailing_diamond": "\ue0b4", - "type": "time" - } - ], - "type": "prompt" + "background": "#0080ff", + "foreground": "#ffffff", + "powerline_symbol": "\ue0b0", + "properties": { + "style": "full" + }, + "style": "powerline", + "template": " \ue5ff {{ .Path }} ", + "type": "path" }, { - "alignment": "left", - "newline": true, - "segments": [ - { - "foreground": "#ff0000", - "properties": { - "template": "\ue00a " - }, - "style": "plain", - "type": "root" - }, - { - "foreground": "#ffffff", - "properties": { - "template": " {{ .Name }} " - }, - "style": "plain", - "type": "shell" - }, - { - "foreground": "#ffffff", - "properties": { - "template": "\uf054 " - }, - "style": "plain", - "type": "text" - } - ], - "type": "prompt" + "background": "#c19c00", + "background_templates": [ + "{{ if or (.Working.Changed) (.Staging.Changed) }}#FFEB3B{{ end }}", + "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#FFA300{{ end }}", + "{{ if gt .Ahead 0 }}#FF7070{{ end }}", + "{{ if gt .Behind 0 }}#90F090{{ end }}" + ], + "foreground": "#000000", + "powerline_symbol": "\ue0b0", + "properties": { + "fetch_stash_count": true, + "fetch_status": true, + "fetch_upstream_icon": true + }, + "style": "powerline", + "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", + "type": "git" + }, + { + "background": "#2e9599", + "background_templates": [ + "{{ if gt .Code 0 }}#f1184c{{ end }}" + ], + "foreground": "#ffffff", + "properties": { + "always_enabled": true + }, + "style": "diamond", + "template": " ", + "trailing_diamond": "\ue0b4", + "type": "exit" } - ], - "console_title_template": "{{ .Folder }}", - "version": 1 + ], + "type": "prompt" + }, + { + "alignment": "right", + "segments": [ + { + "background": "#2e9599", + "foreground": "#ffffff", + "leading_diamond": "\ue0b6", + "properties": { + "time_format": "15:04:05" + }, + "style": "diamond", + "template": " {{ .CurrentDate | date .Format }} ", + "trailing_diamond": "\ue0b4", + "type": "time" + } + ], + "type": "prompt" + }, + { + "alignment": "left", + "newline": true, + "segments": [ + { + "foreground": "#ff0000", + "style": "plain", + "template": "\ue00a ", + "type": "root" + }, + { + "foreground": "#ffffff", + "style": "plain", + "template": " {{ .Name }} ", + "type": "shell" + }, + { + "foreground": "#ffffff", + "style": "plain", + "template": "\uf054 ", + "type": "text" + } + ], + "type": "prompt" + } + ], + "console_title_template": "{{ .Folder }}", + "version": 2 } diff --git a/themes/tiwahu.omp.json b/themes/tiwahu.omp.json index c14025a3..b23f5b0a 100644 --- a/themes/tiwahu.omp.json +++ b/themes/tiwahu.omp.json @@ -1,144 +1,134 @@ { - "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", - "blocks": [ + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", + "blocks": [ + { + "alignment": "left", + "segments": [ { - "alignment": "left", - "segments": [ - { - "type": "executiontime", - "style": "plain", - "background": "#007ACC", - "foreground": "#222222", - "properties": { - "threshold": 321, - "style": "austin", - "template": " {{ .FormattedMs }} " - } - }, - { - "type": "exit", - "style": "plain", - "background": "#880000", - "foreground": "#ff8888", - "properties": { - "template": "{{ if gt .Code 0 }} {{ .Code }} {{ end }}" - } - }, - { - "type": "root", - "style": "plain", - "background": "#ffcc88", - "foreground": "#222222", - "properties": { - "template": "\uf0e7" - } - }, - { - "type": "os", - "style": "plain", - "background": "#222222", - "foreground": "#666666", - "properties": { - "template": " {{ if .WSL }}\uF68E {{ end }}{{.Icon}}" - } - }, - { - "type": "session", - "style": "plain", - "background": "#222222", - "foreground": "#666666", - "properties": { - "template": " {{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }}@{{ .HostName }} " - } - }, - { - "type": "path", - "style": "plain", - "background": "#444444", - "foreground": "#cccccc", - "properties": { - "folder_icon": "\u2026", - "style": "mixed", - "template": " {{ .Path }} " - } - }, - { - "type": "git", - "style": "plain", - "background": "#f14e32", - "foreground": "#f0efe7", - "properties": { - "fetch_status": false, - "fetch_upstream_icon": false, - "branch_icon": "\uE725 ", - "commit_icon": "\uF417 ", - "tag_icon": "\uF412 ", - "rebase_icon": "\uE728 ", - "cherry_pick_icon": "\uE29B ", - "revert_icon": "\uF0E2 ", - "merge_icon": "\uE727 ", - "no_commits_icon": "\uF594 ", - "template": " {{ .HEAD }} " - } - }, - { - "type": "dotnet", - "style": "plain", - "background": "#7014eb", - "foreground": "#ffffff", - "properties": { - "fetch_version": false, - "template": " \uE77f " - } - }, - { - "type": "go", - "style": "plain", - "foreground": "#ffffff", - "background": "#7FD5EA", - "properties": { - "fetch_version": false, - "template": " \uFCD1 " - } - }, - { - "type": "python", - "style": "plain", - "foreground": "#100e23", - "background": "#906cff", - "properties": { - "fetch_version": false, - "template": " \uE235 " - } - }, - { - "type": "rust", - "style": "plain", - "foreground": "#193549", - "background": "#99908a", - "properties": { - "fetch_version": false, - "template": " \uE7a8 " - } - } - ], - "type": "prompt" + "background": "#007ACC", + "foreground": "#222222", + "properties": { + "style": "austin", + "threshold": 321 + }, + "style": "plain", + "template": " {{ .FormattedMs }} ", + "type": "executiontime" }, { - "alignment": "left", - "newline": true, - "segments": [ - { - "type": "text", - "style": "plain", - "foreground": "#007ACC", - "properties": { - "template": "\u276f " - } - } - ], - "type": "prompt" + "background": "#880000", + "foreground": "#ff8888", + "style": "plain", + "template": "{{ if gt .Code 0 }} {{ .Code }} {{ end }}", + "type": "exit" + }, + { + "background": "#ffcc88", + "foreground": "#222222", + "style": "plain", + "template": "\uf0e7", + "type": "root" + }, + { + "background": "#222222", + "foreground": "#666666", + "style": "plain", + "template": " {{ if .WSL }}\uf68e {{ end }}{{.Icon}}", + "type": "os" + }, + { + "background": "#222222", + "foreground": "#666666", + "style": "plain", + "template": " {{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }}@{{ .HostName }} ", + "type": "session" + }, + { + "background": "#444444", + "foreground": "#cccccc", + "properties": { + "folder_icon": "\u2026", + "style": "mixed" + }, + "style": "plain", + "template": " {{ .Path }} ", + "type": "path" + }, + { + "background": "#f14e32", + "foreground": "#f0efe7", + "properties": { + "branch_icon": "\ue725 ", + "cherry_pick_icon": "\ue29b ", + "commit_icon": "\uf417 ", + "fetch_status": false, + "fetch_upstream_icon": false, + "merge_icon": "\ue727 ", + "no_commits_icon": "\uf594 ", + "rebase_icon": "\ue728 ", + "revert_icon": "\uf0e2 ", + "tag_icon": "\uf412 " + }, + "style": "plain", + "template": " {{ .HEAD }} ", + "type": "git" + }, + { + "background": "#7014eb", + "foreground": "#ffffff", + "properties": { + "fetch_version": false + }, + "style": "plain", + "template": " \ue77f ", + "type": "dotnet" + }, + { + "background": "#7FD5EA", + "foreground": "#ffffff", + "properties": { + "fetch_version": false + }, + "style": "plain", + "template": " \ufcd1 ", + "type": "go" + }, + { + "background": "#906cff", + "foreground": "#100e23", + "properties": { + "fetch_version": false + }, + "style": "plain", + "template": " \ue235 ", + "type": "python" + }, + { + "background": "#99908a", + "foreground": "#193549", + "properties": { + "fetch_version": false + }, + "style": "plain", + "template": " \ue7a8 ", + "type": "rust" } - ], - "version": 1 + ], + "type": "prompt" + }, + { + "alignment": "left", + "newline": true, + "segments": [ + { + "foreground": "#007ACC", + "style": "plain", + "template": "\u276f ", + "type": "text" + } + ], + "type": "prompt" + } + ], + "version": 2 } diff --git a/themes/tonybaloney.omp.json b/themes/tonybaloney.omp.json index 2f4a2364..e7e642ed 100644 --- a/themes/tonybaloney.omp.json +++ b/themes/tonybaloney.omp.json @@ -9,10 +9,10 @@ "foreground": "#ffc107", "leading_diamond": "\ue0b6", "properties": { - "style": "folder", - "template": " \ue5ff {{ .Path }} " + "style": "folder" }, "style": "diamond", + "template": " \ue5ff {{ .Path }} ", "trailing_diamond": "\ue0b0", "type": "path" }, @@ -22,30 +22,26 @@ "powerline_symbol": "\ue0b0", "properties": { "fetch_stash_count": true, - "fetch_upstream_icon": true, - "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_upstream_icon": true }, "style": "powerline", + "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" }, { "background": "#ffc107", "foreground": "#18354c", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} " - }, "style": "powerline", + "template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ", "type": "python" }, { "background": "#ffc107", "foreground": "#18354c", "powerline_symbol": "\ue0b0", - "properties": { - "template": " \uf0e7 " - }, "style": "powerline", + "template": " \uf0e7 ", "type": "root" } ], @@ -53,5 +49,5 @@ } ], "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/unicorn.omp.json b/themes/unicorn.omp.json index ac9a46cf..3b0d2a62 100644 --- a/themes/unicorn.omp.json +++ b/themes/unicorn.omp.json @@ -9,10 +9,10 @@ "foreground": "#fff", "powerline_symbol": "\ue0b0", "properties": { - "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}}", "windows": "\ue62a " }, "style": "powerline", + "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}}", "type": "os" }, { @@ -21,10 +21,10 @@ "powerline_symbol": "\ue0b0", "properties": { "folder_separator_icon": "/", - "style": "full", - "template": " \ue5ff {{ .Path }} " + "style": "full" }, "style": "powerline", + "template": " \ue5ff {{ .Path }} ", "type": "path" }, { @@ -40,30 +40,28 @@ "properties": { "fetch_stash_count": true, "fetch_status": true, - "fetch_upstream_icon": true, - "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_upstream_icon": true }, "style": "powerline", + "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" }, { "background": "#003543", "foreground": "#fff", "powerline_symbol": "\ue0b0", - "properties": { - "template": "<#fff> \uf64f {{ .CurrentDate | date .Format }} " - }, "style": "powerline", + "template": "<#fff> \uf64f {{ .CurrentDate | date .Format }} ", "type": "time" }, { "background": "#83769c", "foreground": "#ffffff", "properties": { - "always_enabled": true, - "template": " \ufbab {{ .FormattedMs }}\u2800" + "always_enabled": true }, "style": "diamond", + "template": " \ufbab {{ .FormattedMs }}\u2800", "trailing_diamond": "\ue0b4", "type": "executiontime" } @@ -77,18 +75,14 @@ "segments": [ { "foreground": "#fff", - "properties": { - "template": " \u26a1 " - }, "style": "plain", + "template": " \u26a1 ", "type": "root" }, { "foreground": "#f1184c", - "properties": { - "template": "🦄 " - }, "style": "plain", + "template": "🦄 ", "type": "text" } ], @@ -97,5 +91,5 @@ ], "console_title_template": "{{.UserName}}@{{.HostName}} in {{ .PWD }}", "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/velvet.omp.json b/themes/velvet.omp.json index b024353c..3e39eb14 100644 --- a/themes/velvet.omp.json +++ b/themes/velvet.omp.json @@ -15,11 +15,11 @@ "macos": "\uf179", "manjaro": "\uf312", "opensuse": "\uf314", - "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ", "ubuntu": "\uf31b", "windows": "\uf17a" }, "style": "diamond", + "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ", "type": "os" }, { @@ -31,10 +31,10 @@ "folder_separator_icon": "/", "home_icon": "~", "max_depth": 3, - "style": "agnoster_short", - "template": " {{ .Path }} " + "style": "agnoster_short" }, "style": "powerline", + "template": " {{ .Path }} ", "type": "path" }, { @@ -45,10 +45,10 @@ "branch_max_length": 25, "fetch_stash_count": true, "fetch_status": true, - "fetch_upstream_icon": true, - "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} " + "fetch_upstream_icon": true }, "style": "powerline", + "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" }, { @@ -56,10 +56,10 @@ "foreground": "#EFDCF9", "powerline_symbol": "\ue0b4", "properties": { - "always_enabled": true, - "template": " {{ .FormattedMs }} " + "always_enabled": true }, "style": "powerline", + "template": " {{ .FormattedMs }} ", "type": "executiontime" }, { @@ -69,10 +69,10 @@ "{{ if gt .Code 0 }}#FF3C3C{{ end }}" ], "properties": { - "always_enabled": true, - "template": " \uf7d4{{ if gt .Code 0 }} {{.Code}}{{ end }} " + "always_enabled": true }, "style": "diamond", + "template": " \uf7d4{{ if gt .Code 0 }} {{.Code}}{{ end }} ", "trailing_diamond": "\ue0b4", "type": "exit" } @@ -87,10 +87,10 @@ "foreground": "#E4F34A", "leading_diamond": " \ue0b6", "properties": { - "fetch_version": false, - "template": "\ue235{{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}" + "fetch_version": false }, "style": "diamond", + "template": "\ue235{{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b4", "type": "python" }, @@ -99,10 +99,10 @@ "foreground": "#7FD5EA", "leading_diamond": " \ue0b6", "properties": { - "fetch_version": false, - "template": "\ufcd1{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" + "fetch_version": false }, "style": "diamond", + "template": "\ufcd1{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b4", "type": "go" }, @@ -111,10 +111,10 @@ "foreground": "#42E66C", "leading_diamond": " \ue0b6", "properties": { - "fetch_version": false, - "template": "\ue718{{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}" + "fetch_version": false }, "style": "diamond", + "template": "\ue718{{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}", "trailing_diamond": "\ue0b4", "type": "node" }, @@ -123,10 +123,10 @@ "foreground": "#E64747", "leading_diamond": " \ue0b6", "properties": { - "fetch_version": false, - "template": "\ue791{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" + "fetch_version": false }, "style": "diamond", + "template": "\ue791{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b4", "type": "ruby" }, @@ -135,10 +135,10 @@ "foreground": "#E64747", "leading_diamond": " \ue0b6", "properties": { - "fetch_version": false, - "template": "\ue738{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" + "fetch_version": false }, "style": "diamond", + "template": "\ue738{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", "trailing_diamond": "\ue0b4", "type": "java" } @@ -153,10 +153,10 @@ "background": "#4c1f5e", "foreground": "#EFDCF9", "properties": { - "template": " {{ .CurrentDate | date .Format }} ", "time_format": "15:04:05" }, "style": "diamond", + "template": " {{ .CurrentDate | date .Format }} ", "trailing_diamond": "\ue0b4", "type": "time" } @@ -167,5 +167,5 @@ "console_title_template": "{{ .Shell }} - {{ .Folder }}", "final_space": true, "osc99": true, - "version": 1 + "version": 2 } diff --git a/themes/wopian.omp.json b/themes/wopian.omp.json index a2850aae..a5687f98 100644 --- a/themes/wopian.omp.json +++ b/themes/wopian.omp.json @@ -6,27 +6,23 @@ "segments": [ { "foreground": "cyan", - "properties": { - "template": "{{ .Icon }}" - }, "style": "powerline", + "template": "{{ .Icon }}", "type": "os" }, { "foreground": "cyan", "properties": { - "style": "full", - "template": " {{ .Path }} " + "style": "full" }, "style": "plain", + "template": " {{ .Path }} ", "type": "path" }, { "foreground": "lightYellow", - "properties": { - "template": ":: git({{ .HEAD }})" - }, "style": "plain", + "template": ":: git({{ .HEAD }})", "type": "git" } ], @@ -42,48 +38,46 @@ "fetch_package_manager": true, "fetch_version": true, "npm_icon": "/npm", - "template": " {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}", "yarn_icon": "/yarn" }, "style": "plain", + "template": " {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}", "type": "node" }, { "foreground": "#4063D8", "properties": { "display_mode": "files", - "fetch_version": true, - "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" + "fetch_version": true }, "style": "plain", + "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", "type": "crystal" }, { "foreground": "#DE3F24", "properties": { "display_mode": "files", - "fetch_version": true, - "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" + "fetch_version": true }, "style": "plain", + "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", "type": "ruby" }, { "foreground": "#FED142", "properties": { "display_mode": "context", - "fetch_virtual_env": false, - "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" + "fetch_virtual_env": false }, "style": "plain", + "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", "type": "python" }, { "foreground": "lightGreen", - "properties": { - "template": " {{ .CurrentDate | date .Format }} " - }, "style": "plain", + "template": " {{ .CurrentDate | date .Format }} ", "type": "time" } ], @@ -99,15 +93,15 @@ "{{ if gt .Code 0 }}red{{ end }}" ], "properties": { - "always_enabled": true, - "template": "\u279c " + "always_enabled": true }, "style": "powerline", + "template": "\u279c ", "type": "exit" } ], "type": "prompt" } ], - "version": 1 + "version": 2 } diff --git a/themes/xtoys.omp.json b/themes/xtoys.omp.json index 2af1537b..c9fa0754 100644 --- a/themes/xtoys.omp.json +++ b/themes/xtoys.omp.json @@ -6,36 +6,32 @@ "segments": [ { "foreground": "#CECE04", - "properties": { - "template": "# " - }, "style": "plain", + "template": "# ", "type": "root" }, { - "properties": { - "template": "{{ .UserName }}@{{ .HostName }} " - }, "style": "plain", + "template": "{{ .UserName }}@{{ .HostName }} ", "type": "session" }, { "foreground": "#7B68EE", "properties": { - "style": "agnoster_short", - "template": "{{ .Path }} " + "style": "agnoster_short" }, "style": "plain", + "template": "{{ .Path }} ", "type": "path" }, { "foreground": "#48D1CC", "properties": { "branch_icon": "", - "fetch_upstream_icon": false, - "template": "HEAD:{{ .UpstreamIcon }}{{ .HEAD }} " + "fetch_upstream_icon": false }, "style": "plain", + "template": "HEAD:{{ .UpstreamIcon }}{{ .HEAD }} ", "type": "git" }, { @@ -44,15 +40,15 @@ "{{ if gt .Code 0 }}#E84855{{ end }}" ], "properties": { - "always_enabled": true, - "template": "<#66CDAA>\u276f<#76EEC6>\u276f\u276f " + "always_enabled": true }, "style": "plain", + "template": "<#66CDAA>\u276f<#76EEC6>\u276f\u276f ", "type": "exit" } ], "type": "prompt" } ], - "version": 1 + "version": 2 } diff --git a/themes/ys.omp.json b/themes/ys.omp.json index b76b82e3..693def91 100644 --- a/themes/ys.omp.json +++ b/themes/ys.omp.json @@ -7,10 +7,10 @@ { "foreground": "white", "properties": { - "fetch_version": false, - "template": "({{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }})" + "fetch_version": false }, "style": "plain", + "template": "({{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }})", "type": "python" } ], @@ -22,57 +22,45 @@ "segments": [ { "foreground": "lightBlue", - "properties": { - "template": "# " - }, "style": "plain", + "template": "# ", "type": "text" }, { "foreground": "red", - "properties": { - "template": " % " - }, "style": "plain", + "template": " % ", "type": "root" }, { - "properties": { - "template": "{{ .UserName }} @ {{ .HostName }} " - }, "style": "plain", + "template": "{{ .UserName }} @ {{ .HostName }} ", "type": "session" }, { "foreground": "lightYellow", "properties": { - "style": "full", - "template": "in {{ .Path }} " + "style": "full" }, "style": "plain", + "template": "in {{ .Path }} ", "type": "path" }, { - "properties": { - "template": "on git:{{ .HEAD }} " - }, "style": "plain", + "template": "on git:{{ .HEAD }} ", "type": "git" }, { "foreground": "darkGray", - "properties": { - "template": "[{{ .CurrentDate | date .Format }}]" - }, "style": "plain", + "template": "[{{ .CurrentDate | date .Format }}]", "type": "time" }, { "foreground": "red", - "properties": { - "template": " C:{{ if gt .Code 0 }}{{ .Code }}{{ end }} " - }, "style": "plain", + "template": " C:{{ if gt .Code 0 }}{{ .Code }}{{ end }} ", "type": "exit" } ], @@ -84,10 +72,8 @@ "segments": [ { "foreground": "lightRed", - "properties": { - "template": "$" - }, "style": "plain", + "template": "$", "type": "text" } ], @@ -95,5 +81,5 @@ } ], "final_space": true, - "version": 1 + "version": 2 } diff --git a/themes/zash.omp.json b/themes/zash.omp.json index aee52c4b..d3cd6ae3 100644 --- a/themes/zash.omp.json +++ b/themes/zash.omp.json @@ -6,44 +6,38 @@ "segments": [ { "foreground": "#E36464", - "properties": { - "template": "@{{ .UserName }} " - }, "style": "plain", + "template": "@{{ .UserName }} ", "type": "session" }, { "foreground": "#62ED8B", - "properties": { - "template": "\u279c" - }, "style": "plain", + "template": "\u279c", "type": "text" }, { "foreground": "#56B6C2", "properties": { - "style": "folder", - "template": " {{ .Path }}" + "style": "folder" }, "style": "plain", + "template": " {{ .Path }}", "type": "path" }, { "foreground": "#D4AAFC", "properties": { - "branch_icon": "", - "template": " <#DDB15F>git({{ .HEAD }}<#DDB15F>)" + "branch_icon": "" }, "style": "plain", + "template": " <#DDB15F>git({{ .HEAD }}<#DDB15F>)", "type": "git" }, { "foreground": "#DCB977", - "properties": { - "template": " \uf119" - }, "style": "plain", + "template": " \uf119", "type": "exit" } ], @@ -51,5 +45,5 @@ } ], "final_space": true, - "version": 1 + "version": 2 }