Thursday, May 2, 2024
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 3970  / 2 Years ago, sat, december 11, 2021, 5:45:44

I have installed zsh-autosuggestions plugin in oh-my-zsh.

I'd like to change the colour of the text which comes in suggestion. My current color is very similar to that of what comes before.


Please see the image below.


enter image description here


This setting is probably govern by ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE setting.
But when I add e.g. ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=60' the following happens:


enter image description here


What I'd like to have is bin in much different color than cd.


More From » command-line

 Answers
0

If you also have zsh-syntax-highlighting enabled, there's a known conflict with older versions of zsh-autosuggestions. The workaround is:



[...] was able to fix the issue by updating both autosuggestions and syntax-highlighting to their latest versions from GitHub [...]



To clone,


git clone https://github.com/zsh-users/zsh-syntax-highlighting ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

Alternately, you could git fetch then git pull, assuming no merge conflicts.


[#788] Monday, December 13, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oatglori

Total Points: 313
Total Questions: 102
Total Answers: 111

Location: Guam
Member since Thu, May 18, 2023
1 Year ago
oatglori questions
;