JanDeDobbeleer / oh-my-posh

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

Vertical lines in iTerm2 #1327

Closed sdebruyn closed 2 years ago

sdebruyn commented 2 years ago

Code of Conduct

What happened?

I see vertical lines inside blocks in iTerm2

Screenshot 2021-11-27 at 01 10 49

Theme

{
  "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
  "final_space": true,
  "console_title": true,
  "console_title_style": "template",
  "console_title_template": "{{ .Shell }} in {{ .Folder }}",
  "blocks": [
    {
      "type": "prompt",
      "alignment": "left",
      "segments": [
        {
          "type": "path",
          "style": "diamond",
          "leading_diamond": "╭─",
          "trailing_diamond": "",
          "foreground": "#2d3436",
          "background": "#FF9248",
          "properties": {
            "enable_hyperlink": true,
            "prefix": " ",
            "style": "mixed",
            "home_icon": "\uf015",
            "folder_icon": "\uE5FF",
            "mapped_locations": {
              "~/projects": "\uf670",
              "~/projects/bankdelen": "\uf19c"
            }
          }
        },
        {
          "type": "git",
          "style": "powerline",
          "powerline_symbol": "",
          "foreground": "#011627",
          "background": "#FFFB38",
          "background_templates": [
            "{{ if or (.Working.Changed) (.Staging.Changed) }}#ffeb95{{ end }}",
            "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#c5e478{{ end }}",
            "{{ if gt .Ahead 0 }}#C792EA{{ end }}",
            "{{ if gt .Behind 0 }}#C792EA{{ end }}"
          ],
          "properties": {
            "branch_icon": " ",
            "fetch_status": true,
            "fetch_upstream_icon": true,
            "template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#ef5350>  {{ .Staging.String }}</>{{ end }}"
          }
        },
        {
          "type": "executiontime",
          "style": "diamond",
          "leading_diamond": "",
          "trailing_diamond": "",
          "foreground": "#ffffff",
          "background": "#83769c",
          "properties": {
            "prefix": " 羽",
            "postfix": "⠀",
            "threshold": 0,
            "style": "roundrock"
          }
        }
      ]
    },
    {
      "type": "prompt",
      "alignment": "right",
      "segments": [
        {
          "type": "node",
          "style": "diamond",
          "leading_diamond": " ",
          "trailing_diamond": "",
          "foreground": "#3C873A",
          "background": "#303030",
          "properties": {
            "prefix": " ",
            "postfix": "",
            "display_package_manager": true,
            "yarn_icon": " <#348cba></>",
            "npm_icon": " <#cc3a3a></> "
          }
        },
        {
          "type": "python",
          "style": "diamond",
          "leading_diamond": " ",
          "trailing_diamond": "",
          "foreground": "#FFE873",
          "background": "#306998",
          "properties": {
            "prefix": " ",
            "postfix": ""
          }
        },
        {
          "type": "java",
          "style": "diamond",
          "leading_diamond": " ",
          "trailing_diamond": "",
          "foreground": "#ec2729",
          "background": "#0e8ac8",
          "properties": {
            "prefix": " ",
            "postfix": ""
          }
        },
        {
          "type": "dotnet",
          "style": "diamond",
          "leading_diamond": " ",
          "trailing_diamond": "",
          "foreground": "#0d6da8",
          "background": "#0e0e0e",
          "properties": {
            "prefix": " ",
            "postfix": ""
          }
        },
        {
          "type": "go",
          "style": "diamond",
          "leading_diamond": " ",
          "trailing_diamond": "",
          "foreground": "#06aad5",
          "background": "#ffffff",
          "properties": {
            "prefix": "ﳑ ",
            "postfix": ""
          }
        },
        {
          "type": "az",
          "style": "diamond",
          "leading_diamond": " ",
          "trailing_diamond": "",
          "foreground": "#FFFFFF",
          "background": "#2175B8",
          "properties": {
            "prefix": "\uFD03 ",
            "postfix": "<#262626> </>"
          }
        },
        {
          "type": "battery",
          "style": "diamond",
          "invert_powerline": true,
          "leading_diamond": "",
          "trailing_diamond": "",
          "foreground": "#262626",
          "background": "#f36943",
          "background_templates": [
            "{{if eq \"Charging\" .State.String}}#b8e994{{end}}",
            "{{if eq \"Discharging\" .State.String}}#fff34e{{end}}",
            "{{if eq \"Full\" .State.String}}#33DD2D{{end}}"
          ],
          "properties": {
            "discharging_icon": " ",
            "charging_icon": " ",
            "charged_icon": " ",
            "postfix": " <#262626></>"
          }
        },
        {
          "type": "time",
          "style": "diamond",
          "invert_powerline": true,
          "leading_diamond": "",
          "trailing_diamond": "",
          "background": "#40c4ff",
          "foreground": "#ffffff",
          "properties": {
            "prefix": "  ",
            "postfix": " ",
            "time_format": "15:04"
          }
        }
      ]
    },
    {
      "type": "prompt",
      "alignment": "left",
      "newline": true,
      "segments": [
        {
          "type": "text",
          "style": "plain",
          "foreground": "#21c7c7",
          "properties": {
            "prefix": "",
            "postfix": "",
            "text": "╰─"
          }
        },
        {
          "type": "exit",
          "style": "plain",
          "foreground": "#e0f8ff",
          "properties": {
            "prefix": "ff",
            "display_exit_code": false,
            "always_enabled": true,
            "error_color": "#ef5350"
          }
        }
      ]
    }
  ]
}

What OS are you seeing the problem on?

macOS

Which shell are you using?

zsh

Log output

Version: 6.11.1

Segments:

ConsoleTitle(true)   -   0 ms - uni in ~
path(true)           -   0 ms - ╭─ ]8;;file:///Users/sam\]8;;\ 
git(false)           -   0 ms - 
executiontime(true)  -   0 ms -  羽0ms⠀
node(false)          -   0 ms - 
python(false)        -   0 ms - 
java(false)          -   0 ms - 
dotnet(false)        -   0 ms - 
go(false)            -   0 ms - 
az(false)            - 423 ms - 
battery(true)        -  17 ms -   3 
time(true)           -   0 ms -   01:10 
text(true)           -   0 ms - ╰─
exit(true)           -   0 ms - ff 

Run duration: 442.814644ms

Logs:

2021/11/27 01:10:30 debug: getenv

2021/11/27 01:10:30 getenv duration: 13.588µs, args: XDG_CACHE_HOME
2021/11/27 01:10:30 getCachePath duration: 77.039µs, args: 
2021/11/27 01:10:30 getArgs duration: 96ns, args: 
2021/11/27 01:10:30 getArgs duration: 71ns, args: 
2021/11/27 01:10:30 getShellName duration: 2.141µs, args: 
2021/11/27 01:10:30 debug: getenv

2021/11/27 01:10:30 getenv duration: 1.839µs, args: OMP_CACHE_DISABLED
2021/11/27 01:10:30 isRunningAsRoot duration: 15.599µs, args: 
2021/11/27 01:10:30 getcwd duration: 47.343µs, args: 
2021/11/27 01:10:30 getPathSeperator duration: 85ns, args: 
2021/11/27 01:10:30 getPathSeperator duration: 51ns, args: 
2021/11/27 01:10:30 getShellName duration: 100ns, args: 
2021/11/27 01:10:30 getCurrentUser duration: 695ns, args: 
2021/11/27 01:10:30 getHostName duration: 11.587µs, args: 
2021/11/27 01:10:30 getcwd duration: 127ns, args: 
2021/11/27 01:10:30 getcwd duration: 71ns, args: 
2021/11/27 01:10:30 getArgs duration: 87ns, args: 
2021/11/27 01:10:30 getcwd duration: 53ns, args: 
2021/11/27 01:10:30 getRuntimeGOOS duration: 1.739µs, args: 
2021/11/27 01:10:30 getRuntimeGOOS duration: 51ns, args: 
2021/11/27 01:10:30 getRuntimeGOOS duration: 51ns, args: 
2021/11/27 01:10:30 getRuntimeGOOS duration: 50ns, args: 
2021/11/27 01:10:30 getPathSeperator duration: 59ns, args: 
2021/11/27 01:10:30 getPathSeperator duration: 52ns, args: 
2021/11/27 01:10:30 getRuntimeGOOS duration: 51ns, args: 
2021/11/27 01:10:30 debug: getenv

2021/11/27 01:10:30 getenv duration: 1.316µs, args: WSL_DISTRO_NAME
2021/11/27 01:10:30 isWsl duration: 3.37µs, args: 
2021/11/27 01:10:30 getcwd duration: 66ns, args: 
2021/11/27 01:10:30 getRuntimeGOOS duration: 64ns, args: 
2021/11/27 01:10:30 debug: getenv

2021/11/27 01:10:30 getenv duration: 1.165µs, args: WSL_DISTRO_NAME
2021/11/27 01:10:30 isWsl duration: 3.575µs, args: 
2021/11/27 01:10:30 hasCommand duration: 141.446µs, args: git
2021/11/27 01:10:30 getcwd duration: 54ns, args: 
2021/11/27 01:10:30 error: hasParentFilePath
stat /.git: no such file or directory
2021/11/27 01:10:30 hasParentFilePath duration: 21.05µs, args: .git
2021/11/27 01:10:30 getcwd duration: 74ns, args: 
2021/11/27 01:10:30 executionTime duration: 142ns, args: 
2021/11/27 01:10:30 getcwd duration: 61ns, args: 
2021/11/27 01:10:30 getcwd duration: 53ns, args: 
2021/11/27 01:10:30 getcwd duration: 77ns, args: 
2021/11/27 01:10:30 getcwd duration: 52ns, args: 
2021/11/27 01:10:30 debug: getenv

2021/11/27 01:10:30 getenv duration: 1.162µs, args: VIRTUAL_ENV
2021/11/27 01:10:30 debug: getenv

2021/11/27 01:10:30 getenv duration: 1.077µs, args: CONDA_ENV_PATH
2021/11/27 01:10:30 debug: getenv

2021/11/27 01:10:30 getenv duration: 968ns, args: CONDA_DEFAULT_ENV
2021/11/27 01:10:30 debug: getenv

2021/11/27 01:10:30 getenv duration: 887ns, args: PYENV_VERSION
2021/11/27 01:10:30 debug: getenv
/Library/Java/JavaVirtualMachines/openjdk-14.0.2.jdk/Contents/Home
2021/11/27 01:10:30 getenv duration: 1.489µs, args: JAVA_HOME
2021/11/27 01:10:30 getcwd duration: 75ns, args: 
2021/11/27 01:10:30 getcwd duration: 72ns, args: 
2021/11/27 01:10:30 getcwd duration: 291ns, args: 
2021/11/27 01:10:30 getcwd duration: 92ns, args: 
2021/11/27 01:10:30 getcwd duration: 265ns, args: 
2021/11/27 01:10:30 getcwd duration: 54ns, args: 
2021/11/27 01:10:30 getcwd duration: 76ns, args: 
2021/11/27 01:10:30 debug: getenv

2021/11/27 01:10:30 getenv duration: 1.606µs, args: AZ_ENVIRONMENT_NAME
2021/11/27 01:10:30 debug: getenv

2021/11/27 01:10:30 getenv duration: 1.579µs, args: AZ_USER_NAME
2021/11/27 01:10:30 debug: getenv

2021/11/27 01:10:30 getenv duration: 873ns, args: AZ_SUBSCRIPTION_ID
2021/11/27 01:10:30 debug: getenv

2021/11/27 01:10:30 getenv duration: 876ns, args: AZ_ACCOUNT_NAME
2021/11/27 01:10:30 hasCommand duration: 178.154µs, args: az
2021/11/27 01:10:31 error: runCommand
exit status 1
2021/11/27 01:10:31 runCommand duration: 423.225692ms, args: az account show
2021/11/27 01:10:31 getcwd duration: 122ns, args: 
2021/11/27 01:10:31 getBatteryInfo duration: 17.342127ms, args: 
2021/11/27 01:10:31 getcwd duration: 153ns, args: 
2021/11/27 01:10:31 getcwd duration: 64ns, args: 
2021/11/27 01:10:31 isRunningAsRoot duration: 854ns, args: 
2021/11/27 01:10:31 getcwd duration: 66ns, args: 
2021/11/27 01:10:31 getPathSeperator duration: 77ns, args: 
2021/11/27 01:10:31 getPathSeperator duration: 50ns, args: 
2021/11/27 01:10:31 getShellName duration: 241ns, args: 
2021/11/27 01:10:31 getCurrentUser duration: 308ns, args: 
2021/11/27 01:10:31 getHostName duration: 8.596µs, args: 
2021/11/27 01:10:31 getcwd duration: 72ns, args: 
2021/11/27 01:10:31 lastErrorCode duration: 145ns, args:

iTerm2 profile

{
  "Ansi 3 Color" : {
    "Red Component" : 0.95294123888015747,
    "Color Space" : "sRGB",
    "Blue Component" : 0.61568623781204224,
    "Alpha Component" : 1,
    "Green Component" : 0.97647064924240112
  },
  "Tags" : [

  ],
  "Ansi 12 Color" : {
    "Red Component" : 0.34117650985717773,
    "Color Space" : "sRGB",
    "Blue Component" : 0.99999994039535522,
    "Alpha Component" : 1,
    "Green Component" : 0.78039222955703735
  },
  "Ansi 7 Color" : {
    "Red Component" : 0.94509810209274292,
    "Color Space" : "sRGB",
    "Blue Component" : 0.94117647409439087,
    "Alpha Component" : 1,
    "Green Component" : 0.94509810209274292
  },
  "Ansi 8 Color" : {
    "Red Component" : 0.40784323215484619,
    "Color Space" : "sRGB",
    "Blue Component" : 0.40784311294555664,
    "Alpha Component" : 1,
    "Green Component" : 0.40784311294555664
  },
  "Bold Color" : {
    "Red Component" : 0.97102361917495728,
    "Color Space" : "sRGB",
    "Blue Component" : 0.97102349996566772,
    "Alpha Component" : 1,
    "Green Component" : 0.97102349996566772
  },
  "Ansi 9 Color" : {
    "Red Component" : 1,
    "Color Space" : "sRGB",
    "Blue Component" : 0.34117639064788818,
    "Alpha Component" : 1,
    "Green Component" : 0.36078426241874695
  },
  "Custom Directory" : "No",
  "Right Option Key Sends" : 0,
  "Rows" : 25,
  "Default Bookmark" : "No",
  "Cursor Guide Color" : {
    "Red Component" : 0.70213186740875244,
    "Color Space" : "sRGB",
    "Blue Component" : 1,
    "Alpha Component" : 0.25,
    "Green Component" : 0.9268307089805603
  },
  "Non-ASCII Anti Aliased" : true,
  "Use Bright Bold" : true,
  "Ansi 10 Color" : {
    "Red Component" : 0.35294127464294434,
    "Color Space" : "sRGB",
    "Blue Component" : 0.55686265230178833,
    "Alpha Component" : 1,
    "Green Component" : 0.96862751245498657
  },
  "Ambiguous Double Width" : false,
  "Jobs to Ignore" : [
    "rlogin",
    "ssh",
    "slogin",
    "telnet"
  ],
  "Ansi 15 Color" : {
    "Red Component" : 0.94509810209274292,
    "Color Space" : "sRGB",
    "Blue Component" : 0.94117647409439087,
    "Alpha Component" : 1,
    "Green Component" : 0.94509810209274292
  },
  "Foreground Color" : {
    "Red Component" : 0.93725490570068359,
    "Color Space" : "sRGB",
    "Blue Component" : 0.92156857252120972,
    "Alpha Component" : 1,
    "Green Component" : 0.94117647409439087
  },
  "Working Directory" : "\/Users\/sam",
  "Blinking Cursor" : false,
  "Disable Window Resizing" : true,
  "Sync Title" : false,
  "Prompt Before Closing 2" : false,
  "BM Growl" : true,
  "Command" : "",
  "Description" : "Default",
  "Mouse Reporting" : true,
  "Screen" : -1,
  "Selection Color" : {
    "Red Component" : 0.57319694757461548,
    "Color Space" : "sRGB",
    "Blue Component" : 0.81719964742660522,
    "Alpha Component" : 1,
    "Green Component" : 0.73586553335189819
  },
  "Columns" : 80,
  "Idle Code" : 0,
  "Ansi 13 Color" : {
    "Red Component" : 1,
    "Color Space" : "sRGB",
    "Blue Component" : 0.75686269998550415,
    "Alpha Component" : 1,
    "Green Component" : 0.4156862199306488
  },
  "Custom Command" : "No",
  "ASCII Anti Aliased" : true,
  "Non Ascii Font" : "Monaco 12",
  "Vertical Spacing" : 1,
  "Use Bold Font" : true,
  "Option Key Sends" : 0,
  "Selected Text Color" : {
    "Red Component" : 0,
    "Color Space" : "sRGB",
    "Blue Component" : 0,
    "Alpha Component" : 1,
    "Green Component" : 0
  },
  "Background Color" : {
    "Red Component" : 0.15686270594596863,
    "Color Space" : "sRGB",
    "Blue Component" : 0.21176469326019287,
    "Alpha Component" : 1,
    "Green Component" : 0.16470584273338318
  },
  "Character Encoding" : 4,
  "Ansi 11 Color" : {
    "Red Component" : 0.95294123888015747,
    "Color Space" : "sRGB",
    "Blue Component" : 0.61568623781204224,
    "Alpha Component" : 1,
    "Green Component" : 0.97647064924240112
  },
  "Use Italic Font" : true,
  "Unlimited Scrollback" : false,
  "Keyboard Map" : {
    "0xf700-0x260000" : {
      "Action" : 10,
      "Text" : "[1;6A"
    },
    "0x37-0x40000" : {
      "Action" : 11,
      "Text" : "0x1f"
    },
    "0x32-0x40000" : {
      "Action" : 11,
      "Text" : "0x00"
    },
    "0xf709-0x20000" : {
      "Action" : 10,
      "Text" : "[17;2~"
    },
    "0xf70c-0x20000" : {
      "Action" : 10,
      "Text" : "[20;2~"
    },
    "0xf729-0x20000" : {
      "Action" : 10,
      "Text" : "[1;2H"
    },
    "0xf72b-0x40000" : {
      "Action" : 10,
      "Text" : "[1;5F"
    },
    "0xf705-0x20000" : {
      "Action" : 10,
      "Text" : "[1;2Q"
    },
    "0xf703-0x260000" : {
      "Action" : 10,
      "Text" : "[1;6C"
    },
    "0xf700-0x220000" : {
      "Action" : 10,
      "Text" : "[1;2A"
    },
    "0xf701-0x280000" : {
      "Action" : 11,
      "Text" : "0x1b 0x1b 0x5b 0x42"
    },
    "0x38-0x40000" : {
      "Action" : 11,
      "Text" : "0x7f"
    },
    "0x33-0x40000" : {
      "Action" : 11,
      "Text" : "0x1b"
    },
    "0xf703-0x220000" : {
      "Action" : 10,
      "Text" : "[1;2C"
    },
    "0xf701-0x240000" : {
      "Action" : 10,
      "Text" : "[1;5B"
    },
    "0xf70d-0x20000" : {
      "Action" : 10,
      "Text" : "[21;2~"
    },
    "0xf702-0x260000" : {
      "Action" : 10,
      "Text" : "[1;6D"
    },
    "0xf729-0x40000" : {
      "Action" : 10,
      "Text" : "[1;5H"
    },
    "0xf706-0x20000" : {
      "Action" : 10,
      "Text" : "[1;2R"
    },
    "0x34-0x40000" : {
      "Action" : 11,
      "Text" : "0x1c"
    },
    "0xf700-0x280000" : {
      "Action" : 11,
      "Text" : "0x1b 0x1b 0x5b 0x41"
    },
    "0x2d-0x40000" : {
      "Action" : 11,
      "Text" : "0x1f"
    },
    "0xf70e-0x20000" : {
      "Action" : 10,
      "Text" : "[23;2~"
    },
    "0xf702-0x220000" : {
      "Action" : 10,
      "Text" : "[1;2D"
    },
    "0xf703-0x280000" : {
      "Action" : 11,
      "Text" : "0x1b 0x1b 0x5b 0x43"
    },
    "0xf700-0x240000" : {
      "Action" : 10,
      "Text" : "[1;5A"
    },
    "0xf707-0x20000" : {
      "Action" : 10,
      "Text" : "[1;2S"
    },
    "0xf70a-0x20000" : {
      "Action" : 10,
      "Text" : "[18;2~"
    },
    "0x35-0x40000" : {
      "Action" : 11,
      "Text" : "0x1d"
    },
    "0xf70f-0x20000" : {
      "Action" : 10,
      "Text" : "[24;2~"
    },
    "0xf703-0x240000" : {
      "Action" : 10,
      "Text" : "[1;5C"
    },
    "0xf701-0x260000" : {
      "Action" : 10,
      "Text" : "[1;6B"
    },
    "0xf702-0x280000" : {
      "Action" : 11,
      "Text" : "0x1b 0x1b 0x5b 0x44"
    },
    "0xf72b-0x20000" : {
      "Action" : 10,
      "Text" : "[1;2F"
    },
    "0x36-0x40000" : {
      "Action" : 11,
      "Text" : "0x1e"
    },
    "0xf708-0x20000" : {
      "Action" : 10,
      "Text" : "[15;2~"
    },
    "0xf701-0x220000" : {
      "Action" : 10,
      "Text" : "[1;2B"
    },
    "0xf70b-0x20000" : {
      "Action" : 10,
      "Text" : "[19;2~"
    },
    "0xf702-0x240000" : {
      "Action" : 10,
      "Text" : "[1;5D"
    },
    "0xf704-0x20000" : {
      "Action" : 10,
      "Text" : "[1;2P"
    }
  },
  "Window Type" : 0,
  "Background Image Location" : "",
  "Blur" : false,
  "Badge Color" : {
    "Red Component" : 1,
    "Color Space" : "sRGB",
    "Blue Component" : 0,
    "Alpha Component" : 0.5,
    "Green Component" : 0.1491314172744751
  },
  "Scrollback Lines" : 1000,
  "Send Code When Idle" : false,
  "Close Sessions On End" : true,
  "Terminal Type" : "xterm-256color",
  "Visual Bell" : true,
  "Flashing Bell" : false,
  "Silence Bell" : false,
  "Ansi 14 Color" : {
    "Red Component" : 0.60392171144485474,
    "Color Space" : "sRGB",
    "Blue Component" : 0.99607843160629272,
    "Alpha Component" : 1,
    "Green Component" : 0.92941170930862427
  },
  "ASCII Ligatures" : false,
  "Name" : "Default",
  "Cursor Text Color" : {
    "Red Component" : 0.15686270594596863,
    "Color Space" : "sRGB",
    "Blue Component" : 0.21176469326019287,
    "Alpha Component" : 1,
    "Green Component" : 0.16470584273338318
  },
  "Shortcut" : "",
  "Cursor Color" : {
    "Red Component" : 0.91646724939346313,
    "Color Space" : "sRGB",
    "Blue Component" : 0.91647690534591675,
    "Alpha Component" : 1,
    "Green Component" : 0.91648870706558228
  },
  "Ansi 0 Color" : {
    "Red Component" : 0,
    "Color Space" : "sRGB",
    "Blue Component" : 0,
    "Alpha Component" : 1,
    "Green Component" : 0
  },
  "Transparency" : 0,
  "Ansi 1 Color" : {
    "Red Component" : 1,
    "Color Space" : "sRGB",
    "Blue Component" : 0.34117639064788818,
    "Alpha Component" : 1,
    "Green Component" : 0.36078426241874695
  },
  "Horizontal Spacing" : 1,
  "Ansi 4 Color" : {
    "Red Component" : 0.34117650985717773,
    "Color Space" : "sRGB",
    "Blue Component" : 0.99999994039535522,
    "Alpha Component" : 1,
    "Green Component" : 0.78039222955703735
  },
  "Ansi 5 Color" : {
    "Red Component" : 1,
    "Color Space" : "sRGB",
    "Blue Component" : 0.75686269998550415,
    "Alpha Component" : 1,
    "Green Component" : 0.4156862199306488
  },
  "Use Non-ASCII Font" : false,
  "Ansi 6 Color" : {
    "Red Component" : 0.60392171144485474,
    "Color Space" : "sRGB",
    "Blue Component" : 0.99607843160629272,
    "Alpha Component" : 1,
    "Green Component" : 0.92941170930862427
  },
  "Normal Font" : "FiraMonoNerdFontCompleteM-Regular 16",
  "Link Color" : {
    "Red Component" : 0.29264676570892334,
    "Color Space" : "sRGB",
    "Blue Component" : 0.85775750875473022,
    "Alpha Component" : 1,
    "Green Component" : 0.66938728094100952
  },
  "Guid" : "8184297B-2DD5-4C8A-BAEE-1A770F42086F",
  "Ansi 2 Color" : {
    "Red Component" : 0.35294127464294434,
    "Color Space" : "sRGB",
    "Blue Component" : 0.55686265230178833,
    "Alpha Component" : 1,
    "Green Component" : 0.96862751245498657
  }
}
cjboyle commented 2 years ago

Have you tried different fonts, weights and/or sizes? This is an issue with rendering of NerdFont/powerline characters, not OMP, and unfortunately not all terminal and font combinations will yield visually-correct results.

JanDeDobbeleer commented 2 years ago

Definitely an iTerm2 setting, I'll compare my setup with yours.

JanDeDobbeleer commented 2 years ago

@sdebruyn this is my config, I don't see that:

{
  "Transparency" : 0,
  "Tags" : [

  ],
  "Ansi 12 Color" : {
    "Red Component" : 0.3803921639919281,
    "Color Space" : "Calibrated",
    "Blue Component" : 0.93725490570068359,
    "Alpha Component" : 1,
    "Green Component" : 0.68627452850341797
  },
  "Guid" : "22169040-A822-4857-8819-BC3D78181E03",
  "Normal Font" : "VictorMonoNerdFontCompleteM-Regular 13",
  "Bold Color" : {
    "Red Component" : 0.67058825492858887,
    "Color Space" : "Calibrated",
    "Blue Component" : 0.74901962280273438,
    "Alpha Component" : 1,
    "Green Component" : 0.69803923368453979
  },
  "Ansi 2 Color" : {
    "Red Component" : 0.59607845544815063,
    "Color Space" : "Calibrated",
    "Blue Component" : 0.47450980544090271,
    "Alpha Component" : 1,
    "Green Component" : 0.76470589637756348
  },
  "Ansi 3 Color" : {
    "Red Component" : 0.81960785388946533,
    "Color Space" : "Calibrated",
    "Blue Component" : 0.40000000596046448,
    "Alpha Component" : 1,
    "Green Component" : 0.60392159223556519
  },
  "Link Color" : {
    "Red Component" : 0.023000000044703484,
    "Color Space" : "Calibrated",
    "Blue Component" : 0.67799997329711914,
    "Alpha Component" : 1,
    "Green Component" : 0.27000001072883606
  },
  "Rows" : 25,
  "Default Bookmark" : "No",
  "Cursor Guide Color" : {
    "Red Component" : 0.64999997615814209,
    "Color Space" : "Calibrated",
    "Blue Component" : 1,
    "Alpha Component" : 0.25,
    "Green Component" : 0.9100000262260437
  },
  "Non-ASCII Anti Aliased" : true,
  "Use Bright Bold" : true,
  "Ansi 10 Color" : {
    "Red Component" : 0.59607845544815063,
    "Color Space" : "Calibrated",
    "Blue Component" : 0.47450980544090271,
    "Alpha Component" : 1,
    "Green Component" : 0.76470589637756348
  },
  "Ambiguous Double Width" : false,
  "Jobs to Ignore" : [
    "rlogin",
    "ssh",
    "slogin",
    "telnet"
  ],
  "Show Status Bar" : false,
  "Ansi 15 Color" : {
    "Red Component" : 1,
    "Color Space" : "Calibrated",
    "Blue Component" : 0.99999129772186279,
    "Alpha Component" : 1,
    "Green Component" : 0.99997437000274658
  },
  "Foreground Color" : {
    "Red Component" : 0.67058825492858887,
    "Color Space" : "Calibrated",
    "Blue Component" : 0.74901962280273438,
    "Alpha Component" : 1,
    "Green Component" : 0.69803923368453979
  },
  "Working Directory" : "\/Users\/jan",
  "Blinking Cursor" : false,
  "Disable Window Resizing" : true,
  "Sync Title" : false,
  "Prompt Before Closing 2" : false,
  "BM Growl" : true,
  "Command" : "pwsh",
  "Description" : "Default",
  "Mouse Reporting" : true,
  "Screen" : -1,
  "Selection Color" : {
    "Red Component" : 0.36078432202339172,
    "Color Space" : "Calibrated",
    "Blue Component" : 0.43921568989753723,
    "Alpha Component" : 1,
    "Green Component" : 0.38823530077934265
  },
  "Only The Default BG Color Uses Transparency" : true,
  "Columns" : 80,
  "Idle Code" : 0,
  "Ansi 13 Color" : {
    "Red Component" : 0.7764706015586853,
    "Color Space" : "Calibrated",
    "Blue Component" : 0.86666667461395264,
    "Alpha Component" : 1,
    "Green Component" : 0.47058823704719543
  },
  "Custom Command" : "No",
  "ASCII Anti Aliased" : true,
  "Non Ascii Font" : "Monaco 12",
  "Vertical Spacing" : 1,
  "Use Bold Font" : true,
  "Option Key Sends" : 0,
  "Selected Text Color" : {
    "Red Component" : 0.22745098173618317,
    "Color Space" : "Calibrated",
    "Blue Component" : 0.29411765933036804,
    "Alpha Component" : 1,
    "Green Component" : 0.24705882370471954
  },
  "Background Color" : {
    "Red Component" : 0.15294117647058825,
    "Color Space" : "sRGB",
    "Blue Component" : 0.20000000000000001,
    "Alpha Component" : 1,
    "Green Component" : 0.17254901960784313
  },
  "Character Encoding" : 4,
  "Ansi 11 Color" : {
    "Red Component" : 0.81960785388946533,
    "Color Space" : "Calibrated",
    "Blue Component" : 0.40000000596046448,
    "Alpha Component" : 1,
    "Green Component" : 0.60392159223556519
  },
  "Use Italic Font" : true,
  "Unlimited Scrollback" : false,
  "Keyboard Map" : {
    "0xf700-0x260000" : {
      "Action" : 10,
      "Text" : "[1;6A"
    },
    "0x37-0x40000" : {
      "Action" : 11,
      "Text" : "0x1f"
    },
    "0x32-0x40000" : {
      "Action" : 11,
      "Text" : "0x00"
    },
    "0xf709-0x20000" : {
      "Action" : 10,
      "Text" : "[17;2~"
    },
    "0xf70c-0x20000" : {
      "Action" : 10,
      "Text" : "[20;2~"
    },
    "0xf729-0x20000" : {
      "Action" : 10,
      "Text" : "[1;2H"
    },
    "0xf72b-0x40000" : {
      "Action" : 10,
      "Text" : "[1;5F"
    },
    "0xf705-0x20000" : {
      "Action" : 10,
      "Text" : "[1;2Q"
    },
    "0xf703-0x260000" : {
      "Action" : 10,
      "Text" : "[1;6C"
    },
    "0xf700-0x220000" : {
      "Action" : 10,
      "Text" : "[1;2A"
    },
    "0xf701-0x280000" : {
      "Action" : 11,
      "Text" : "0x1b 0x1b 0x5b 0x42"
    },
    "0x38-0x40000" : {
      "Action" : 11,
      "Text" : "0x7f"
    },
    "0x33-0x40000" : {
      "Action" : 11,
      "Text" : "0x1b"
    },
    "0xf703-0x220000" : {
      "Action" : 10,
      "Text" : "[1;2C"
    },
    "0xf701-0x240000" : {
      "Action" : 10,
      "Text" : "[1;5B"
    },
    "0xf70d-0x20000" : {
      "Action" : 10,
      "Text" : "[21;2~"
    },
    "0xf702-0x260000" : {
      "Action" : 10,
      "Text" : "[1;6D"
    },
    "0xf729-0x40000" : {
      "Action" : 10,
      "Text" : "[1;5H"
    },
    "0xf706-0x20000" : {
      "Action" : 10,
      "Text" : "[1;2R"
    },
    "0x34-0x40000" : {
      "Action" : 11,
      "Text" : "0x1c"
    },
    "0xf700-0x280000" : {
      "Action" : 11,
      "Text" : "0x1b 0x1b 0x5b 0x41"
    },
    "0x2d-0x40000" : {
      "Action" : 11,
      "Text" : "0x1f"
    },
    "0xf70e-0x20000" : {
      "Action" : 10,
      "Text" : "[23;2~"
    },
    "0xf702-0x220000" : {
      "Action" : 10,
      "Text" : "[1;2D"
    },
    "0xf703-0x280000" : {
      "Action" : 11,
      "Text" : "0x1b 0x1b 0x5b 0x43"
    },
    "0xf700-0x240000" : {
      "Action" : 10,
      "Text" : "[1;5A"
    },
    "0xf707-0x20000" : {
      "Action" : 10,
      "Text" : "[1;2S"
    },
    "0xf70a-0x20000" : {
      "Action" : 10,
      "Text" : "[18;2~"
    },
    "0x35-0x40000" : {
      "Action" : 11,
      "Text" : "0x1d"
    },
    "0xf70f-0x20000" : {
      "Action" : 10,
      "Text" : "[24;2~"
    },
    "0xf703-0x240000" : {
      "Action" : 10,
      "Text" : "[1;5C"
    },
    "0xf701-0x260000" : {
      "Action" : 10,
      "Text" : "[1;6B"
    },
    "0xf702-0x280000" : {
      "Action" : 11,
      "Text" : "0x1b 0x1b 0x5b 0x44"
    },
    "0xf72b-0x20000" : {
      "Action" : 10,
      "Text" : "[1;2F"
    },
    "0x36-0x40000" : {
      "Action" : 11,
      "Text" : "0x1e"
    },
    "0xf708-0x20000" : {
      "Action" : 10,
      "Text" : "[15;2~"
    },
    "0xf701-0x220000" : {
      "Action" : 10,
      "Text" : "[1;2B"
    },
    "0xf70b-0x20000" : {
      "Action" : 10,
      "Text" : "[19;2~"
    },
    "0xf702-0x240000" : {
      "Action" : 10,
      "Text" : "[1;5D"
    },
    "0xf704-0x20000" : {
      "Action" : 10,
      "Text" : "[1;2P"
    }
  },
  "Window Type" : 0,
  "Initial Text" : "",
  "Background Image Location" : "",
  "Blur" : false,
  "Badge Color" : {
    "Red Component" : 1,
    "Color Space" : "Calibrated",
    "Blue Component" : 0,
    "Alpha Component" : 0.5,
    "Green Component" : 0
  },
  "Scrollback Lines" : 1000,
  "Send Code When Idle" : false,
  "Close Sessions On End" : true,
  "Terminal Type" : "xterm-256color",
  "Visual Bell" : true,
  "Flashing Bell" : false,
  "Show Timestamps" : 0,
  "Status Bar Layout" : {
    "components" : [

    ],
    "advanced configuration" : {
      "remove empty components" : false,
      "font" : ".AppleSystemUIFont 12",
      "algorithm" : 0,
      "auto-rainbow style" : 0
    }
  },
  "Silence Bell" : false,
  "Ansi 14 Color" : {
    "Red Component" : 0.33725491166114807,
    "Color Space" : "Calibrated",
    "Blue Component" : 0.7607843279838562,
    "Alpha Component" : 1,
    "Green Component" : 0.7137255072593689
  },
  "Name" : "ZSH",
  "Cursor Text Color" : {
    "Red Component" : 1,
    "Color Space" : "Calibrated",
    "Blue Component" : 1,
    "Alpha Component" : 1,
    "Green Component" : 1
  },
  "Open Toolbelt" : false,
  "Shortcut" : "",
  "Cursor Color" : {
    "Red Component" : 0.73333334922790527,
    "Color Space" : "Calibrated",
    "Blue Component" : 0.73333334922790527,
    "Alpha Component" : 1,
    "Green Component" : 0.73333334922790527
  },
  "Ansi 0 Color" : {
    "Red Component" : 0.11764705926179886,
    "Color Space" : "Calibrated",
    "Blue Component" : 0.15294118225574493,
    "Alpha Component" : 1,
    "Green Component" : 0.12941177189350128
  },
  "Ansi 1 Color" : {
    "Red Component" : 0.87843137979507446,
    "Color Space" : "Calibrated",
    "Blue Component" : 0.45882353186607361,
    "Alpha Component" : 1,
    "Green Component" : 0.42352941632270813
  },
  "Horizontal Spacing" : 1,
  "Custom Directory" : "No",
  "Ansi 4 Color" : {
    "Red Component" : 0.3803921639919281,
    "Color Space" : "Calibrated",
    "Blue Component" : 0.93725490570068359,
    "Alpha Component" : 1,
    "Green Component" : 0.68627452850341797
  },
  "Right Option Key Sends" : 0,
  "Use Non-ASCII Font" : false,
  "Ansi 7 Color" : {
    "Red Component" : 0.67058825492858887,
    "Color Space" : "Calibrated",
    "Blue Component" : 0.74901962280273438,
    "Alpha Component" : 1,
    "Green Component" : 0.69803923368453979
  },
  "Ansi 8 Color" : {
    "Red Component" : 0.36078432202339172,
    "Color Space" : "Calibrated",
    "Blue Component" : 0.43921568989753723,
    "Alpha Component" : 1,
    "Green Component" : 0.38823530077934265
  },
  "Ansi 9 Color" : {
    "Red Component" : 0.87843137979507446,
    "Color Space" : "Calibrated",
    "Blue Component" : 0.45882353186607361,
    "Alpha Component" : 1,
    "Green Component" : 0.42352941632270813
  },
  "Ansi 6 Color" : {
    "Red Component" : 0.33725491166114807,
    "Color Space" : "Calibrated",
    "Blue Component" : 0.7607843279838562,
    "Alpha Component" : 1,
    "Green Component" : 0.7137255072593689
  },
  "Ansi 5 Color" : {
    "Red Component" : 0.7764706015586853,
    "Color Space" : "Calibrated",
    "Blue Component" : 0.86666667461395264,
    "Alpha Component" : 1,
    "Green Component" : 0.47058823704719543
  }
}
sdebruyn commented 2 years ago

Crazy... the cause is an even font size. I don't see the lines when I use an odd font size. Our configs are identical except for the colours and font, but I can reproduce it with your profile if I decrease/increase the font size with 1.

JanDeDobbeleer commented 2 years ago

I would ask at our iTerm2 friends, oh-my-posh can't in any way influence the rendering. That's fully terminal side.

github-actions[bot] commented 7 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.