Custom section color not working on MacOS terminal #1339
Replies: 2 comments
-
I got around to doing a little more digging and had an idea that it might have nothing to do with the terminal but everything to do with the code that it was actually running. The Mac that I observed the issue on is the first computer in a while that I've set this up on again so it fetched a much more recent version of the prompt code. Sure enough, pulling that on my WSL caused it to exhibit the same behavior. I tracked it down to the 4.0.0 release so I've switched them to 3.16.7 as the most recent release tag that allows the color to show correctly. Strangely enough, the exact same syntax that doesn't work in my lambda section will work just fine in |
Beta Was this translation helpful? Give feedback.
-
Closing since I've opened an issue with a more accurate title and description - #1344 |
Beta Was this translation helpful? Give feedback.
-
I've been using Spaceship prompt for years through Oh My ZSH with a custom section at the start as shown below. It's worked great on most Linux terminals, mainly Konsole, as well as the Windows terminal with WSL.
I just set it up on a Mac and the custom section fails to reflect any color code syntax I've tried, instead rendering it as a string:
I noticed the syntax I was using to set the color was different than the syntax recommended in the doc about creating custom sections, so I tried changing the code and trying several different color names and codes. All yielded the same results, printing the color name and remaining grey or black depending on the terminal settings. I also verified that the 'dir' section will reflect changes to its color variable as expected.
I've tried to look for details on this issue but because it's so specific I'm not sure if nobody has encountered it before or if I just haven't found the right terms to find more information.
Running MacOS Monterey 12.6.3, Terminal version 2.12.7.
Code for
lambda.zsh
:Beta Was this translation helpful? Give feedback.
All reactions