Doesn't seem to work in oh-my-zsh at all #182

Closed
turkeyphant opened this Issue Jul 28, 2016 · 9 comments

4 participants

@turkeyphant

Just pulled and added to ~/.zshrc, not seeing any autosuggestions at all. Tried removing all other plugins, still no dice?

@ericfreese ericfreese added the support label Jul 28, 2016
@ericfreese
zsh-users member

Have you followed closely the instructions from the readme?

@ericfreese
zsh-users member

Can you get it working by manually sourcing it?

source path/to/zsh-autosuggestions.zsh

@turkeyphant

Tried that too.

@fallenpixel

Crazy idea, I found your issue, thinking I had the same problem using antigen. However in my case it least it was just the themeing of my ZSH causing the text of the suggestion to appear in the same color as the background. If you execute echo 'hello' followed by ech and the right arrow key, does the completion work? If it does, run ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=6' in your shell. The completion should display properly. You can try changing the number as well to see what fits in best with your shell. Then this can be added to ~/.zshrc to make the change permanent.

@turkeyphant

Amazing! Thank you!

@ericfreese ericfreese closed this Jul 28, 2016
@fallenpixel

Glad that did it. Enjoy your autosuggestions.

@jedahan

Is there a way for autosuggestions to detect if the background color is the same and auto-switch to fg=6 as a workaround?

@turkeyphant

A single line in the readme warning of this should suffice. Or having the default an obnoxious colour with instruction to customise after install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment