zsh-users / zsh-autosuggestions

Fish-like autosuggestions for zsh
MIT License
30.81k stars 1.85k forks source link

Can I set `ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE` to show red text when `history` autosuggest strategy is used and blue text when `completion` engine is used? #599

Closed creednaylor closed 3 years ago

creednaylor commented 3 years ago

I know that ZSH_AUTOSUGGEST_STRATEGY=(history completion) will first try to find a suggestion from your history, but, if it can't find a match, will find a suggestion from the completion engine. I also know that ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE configures the style that a suggestion is shown with.

Is there a way to show one font color (e.g. red) for suggestions from my history and another font color (e.g. blue) for suggestions from the completion engine?