-
-
Notifications
You must be signed in to change notification settings - Fork 6
Seems not working with macOS Terminal. #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm not sure I could be much help in debugging this because I don't have macOS and I don't use Homebrew. I have a hunch that it might have something to do with using the zsh-autosuggestions and zsh-syntax-highlighting plugins from Homebrew. Can you try installing those plugins manually via Git? git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.zsh/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.zsh/plugins/zsh-syntax-highlighting And then source them in your ~/.zshrc in the same order as you did in your screenshot. Please let me know how it goes! |
I'm experiencing the same thing, will update if I find a solution |
I don't know if this applies to your case, but for me on Linux, if there are symlinks somewhere in the path of the sourced file, the syntax highlighting doesn't show. For example, if anything in the path |
All.. Ihad the same issue on masOS noted above and head scratched for a bit. The underlying issue is not this code but the macOS terminal emulator not responding to the color requests. Try for yourself using a Windows box and the MSFT Terminal app ssh'ing to your mac and Tada everything is working as it should. I have tested with our own GUI term we are working on at noports.com and prompt from the app store they work fine, but the terminal from Apple fails (boo). https://github.com/alacritty/alacritty/releases also works for a free OpenSource option Hope that helps ! ![]() |
I am having the same problem. My guess is that my terminal doesn't support 24-bit color and hence the hex codes used in the scripts here cannot be applied. I tried quantizing them down to 256-color space, but the result is terrible :( |
Are you on macOS by any chance? |
For future users who find this: Simple workaround that took me a while to figure out since I'm a noob in MacOS: Migrating from default MacOS terminal to iTerm2 solved the problem. I believe it's because it supports truecolor |
Where to put it:

In .zshrc:

What I get:


Without this plugin:


The text was updated successfully, but these errors were encountered: