JanDeDobbeleer / oh-my-posh

The most customisable and low-latency cross platform/shell prompt renderer
https://ohmyposh.dev
MIT License
17.01k stars 2.37k forks source link

Half-diamond, arrow style first segment #163

Closed springcomp closed 3 years ago

springcomp commented 3 years ago

Prerequisites

Question

I’m using Powerline on other WSL2 shells with great success. I like using a style for the first segment that looks like this:

image

I have tried the three available styles plain, powerline and diamond and the closest I could come up with is this:

image

Is it possible to change the color of the powerline symbol so that it takes the background of the segment? This proble only occurs for the first segment obviously.

Environment

JanDeDobbeleer commented 3 years ago

Yes, this is possible, but it's sometimes found by trying a few combinations (there's more than one way). This one specifically can be created by using a plain and diamond segment.

{
  "type": "session",
  "style": "plain",
  "foreground": "#ffffff",
  "background": "#0087AF",
  "properties": {
    "user_info_separator": "@"
  }
},
{
  "type": "session",
  "style": "diamond",
  "foreground": "#ffffff",
  "background": "#585858",
  "trailing_diamond": "\uE0B0",
  "properties": {
    "user_info_separator": "@",
    "prefix": "<#0087AF>\uE0B0</> ",
    "postfix": " "
  }
}

Which results into this:

image
springcomp commented 3 years ago

Oh, yes, of course. Thanks

github-actions[bot] commented 4 months ago

This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.