Amir
Amir

Reputation: 171

Setup ConEmu+Cygwin+Oh-my-zsh agnoster theme

I have setup ConEmu with Cygwin and Zsh quite a while ago. So far everything is working good.

I'm very interested in changing my oh-my-zsh theme to "agnoster".. I've installed the powerline fonts and turned on the xterm256 colors as requested.

I'm still having problems with the colors though, the cwd path has the same color of the background (and appears to be hidden), no matter which color scheme I use.

enter image description here

Anyone had luck with that?

Upvotes: 0

Views: 3067

Answers (1)

mdip
mdip

Reputation: 685

In my case, the issue was a combination of having a background image with a black background configured and the value for Replace Color Indexes being set to #1.

I had reset according to this comment:

After reading about -basic, I realized it something with my configuration. Reset it to default.. and configured from the beginning.. it works perfect now, I really really appreciate your help.

Everything was fine after the reset, so I went through and added my background image. That was fine, but because of the black background on the image and the fact that I was using transparency and a slightly off-black background, I started playing with that setting and once set to #1, it failed. I also noticed that the tooltip indicated that the default setting is #0 #1 (though after reset, it was set to *).

I have this problem on every host I run ConEmu on. Every host was setup several months ago and all have that same background image. I don't recall ever setting the Replace Color Indexes setting when I set it up -- heck, I didn't even know what that did so I can't imagine setting it. I'm guessing it might have been a default in an earlier version (I run the alphas) that, perhaps, carried over due to my setting it up a while ago?

I suspect, in my case, that this was the entire issue and that there wasn't something else going on. I saw the correct background to my prompt in PowerShell, but I use a hard-set value to an RGB color and take advantage of TrueColor ANSI support (which, when it fails, falls back to something that's not #0 or #1).

So, at least in my case, it definitely wasn't a bug -- it was doing exactly what it was asked to do, replacing a "blue" #1 background with the black from my image which yielded black-on-black text. I'll try changing that field on my other laptop exhibiting this problem when I'm home to confirm an alternative to resetting the entire configuration.

Upvotes: 0

Related Questions