Powerline symbol for rprompt block type not working properly #6356
Unanswered
Dru01
asked this question in
Troubleshoot
Replies: 1 comment 3 replies
|
@JanDeDobbeleer do you have any hint for what I'm doing/understanding wrong? |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Code of Conduct
What happened?
I can't get to work properly the "trailing symbol" (I know there is no such thing, but I mean the separator behind it) cause if I'm right powerline_symbol should take the previous background which is purple, but I don't know if the previous is the other way around.
I've also try every parent/background/foreground overight, leadin_power_symbol, invert_powersymbol and none of them seems to work.
Theme
{ "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "palette": { "black": "#1A1A1A", "blue": "#4B95E9", "green": "#59C9A5", "orange": "#F07623", "red": "#D81E5B", "white": "#F8F9FA", "yellow": "#F3AE35", "purple": "#83769c", "lblue": "#86BBD8", "dblue": "#33658A" }, "secondary_prompt": { "template": "<p:yellow,transparent>\ue0b6</><,p:yellow> > </><p:yellow,transparent>\ue0b0</> ", "foreground": "p:black", "background": "transparent" }, "transient_prompt": { "template": "<p:yellow,transparent>\ue0b6</><,p:yellow> {{ .Folder }} </><p:yellow,transparent>\ue0b0</> ", "foreground": "p:black", "background": "transparent" }, "console_title_template": "{{ .Shell }} in {{ .Folder }}", "upgrade": { "source": "cdn", "interval": "168h", "auto": false, "notice": false }, "blocks": [ { "type": "prompt", "alignment": "left", "segments": [ { "leading_diamond": "\ue0b6", "trailing_diamond": "\ue0b0", "template": " {{ if .SSHSession }}\ueba9 {{ end }}{{ .UserName }} ", "foreground": "p:black", "background": "p:yellow", "type": "session", "style": "diamond" }, { "properties": { "style": "folder" }, "template": " \uea83 {{ .Path }} ", "foreground": "p:white", "powerline_symbol": "\ue0b0", "background": "p:orange", "type": "path", "style": "powerline" }, { "properties": { "branch_template": "{{ trunc 25 .Branch }}", "fetch_status": true, "fetch_upstream_icon": true }, "template": " {{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }} ", "foreground": "p:black", "powerline_symbol": "\ue0b0", "background": "p:green", "type": "git", "style": "powerline", "foreground_templates": [ "{{ if or (.Working.Changed) (.Staging.Changed) }}p:black{{ end }}", "{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:white{{ end }}", "{{ if gt .Ahead 0 }}p:white{{ end }}" ], "background_templates": [ "{{ if or (.Working.Changed) (.Staging.Changed) }}p:yellow{{ end }}", "{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}", "{{ if gt .Ahead 0 }}#49416D{{ end }}", "{{ if gt .Behind 0 }}#7A306C{{ end }}" ] }, { "template": " \uf0e7 ", "foreground": "p:white", "powerline_symbol": "\ue0b0", "background": "p:yellow", "type": "root", "style": "powerline" }, { "properties": { "always_enabled": true }, "leading_diamond": "<transparent,background>\ue0b0</>", "trailing_diamond": "\ue0b4", "template": " {{ if gt .Code 0 }}\uf00d{{ else }}\uf00c{{ end }} ", "foreground": "p:white", "background": "p:blue", "type": "status", "style": "diamond", "background_templates": [ "{{ if gt .Code 0 }}p:red{{ end }}" ] } ] }, { "type": "rprompt", "segments": [ { "background": "p:dblue", "foreground": "p:white", "leading_diamond": "\ue0b6", "style": "diamond", "properties": { "linux": "\ue712", "macos": "\ue711", "windows": "\ue70f" }, "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ", "type": "os" }, { "background": "p:dblue", "foreground": "p:white", "trailing_diamond": "<transparent,background>\ue0b2</>", "style": "diamond", "template": " <b>{{ .Name }} </b> ", "type": "shell", "properties": { "mapped_shell_names": { "pwsh": "\uebc7", "shell": "\ue86c", "cmd": "\uebc4", "lua": "\ue826", "nu": "\ue760", "fish": "\uee41", "zsh": "\ue760", "bash": "\ue760" } } }, { "foreground": "p:white", "background": "p:lblue", "powerline_symbol": "<parentbackground, transparent>\ue0b2</>", "invert_powerline": true, "style": "powerline", "template": "hola", "type": "text" }, { "background": "p:purple", "foreground": "p:white", "style": "diamond", "leading_diamond": "<background, transparent>\ue0b2</>", "trailing_diamond": "\ue0b4", "template": " <b>{{ .CurrentDate | date \"15:04\" }}</b> ", "type": "time" } ] } ], "tooltips": [ { "properties": { "display_default": true }, "leading_diamond": "\ue0b0", "trailing_diamond": "\ue0b4", "template": " \ue7ad {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} ", "foreground": "p:white", "background": "p:orange", "type": "aws", "style": "diamond", "tips": [ "aws" ] }, { "properties": { "display_default": true }, "leading_diamond": "\ue0b0", "trailing_diamond": "\ue0b4", "template": " \uebd8 {{ .Name }} ", "foreground": "p:white", "background": "p:blue", "type": "az", "style": "diamond", "tips": [ "az" ] } ], "version": 3, "final_space": true }What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output
All reactions