zsh-users / zsh-syntax-highlighting

Fish shell like syntax highlighting for Zsh.
github.com/zsh-users/zsh-syntax-highlighting
BSD 3-Clause "New" or "Revised" License
20k stars 1.33k forks source link

Highlighting may not be working correctly in iTerm? #810

Closed ericboxer closed 3 years ago

ericboxer commented 3 years ago

It appears that highlighting may not be working in iTerm2 (macOS) correctly. I have zsh installed from Homebrew.

Screen Shot 2021-04-25 at 12 10 41 PM

Even using standard commands the highlighter shows incomplete commands as red, but once a command is completed it does not show up as green as expected.

Screen Shot 2021-04-25 at 12 14 27 PM Screen Shot 2021-04-25 at 12 14 38 PM

I would normally chalk this up to user error, however, the standard terminal in macOS and the integrated terminal in VSCode seem to function as expected.

Screen Shot 2021-04-25 at 12 15 54 PM Screen Shot 2021-04-25 at 12 16 39 PM

Even removing any theming, any other addons (really only autosuggest), and basically an empty .zshrc doesn't seem to solve the issue.

Any thoughts on getting this to work correctly?

ericboxer commented 3 years ago

Closed to (what i originally suspected) was a user error.

danielshahaf commented 3 years ago

What was the solution?

ericboxer commented 3 years ago

A long time ago I apparently overwrite the colors used in iTerm. Didn't even think to look there. Researching now how to set the colors from their scripting interface.