Closed pherrymason closed 4 years ago
Is it possible that you run your ubuntu with wsl on windows? ^M at the error is normally a "git config messed up" sign.
I had the same error and solved it by removing the plugin (in ~/.oh-my-zsh/custom/plugins/zsh-autosuggestion), changing the git CRLF handling:
git config --global core.autocrlf false
git config --global core.eol lf
and re-installing it. Maybe it's working for you too.
Is it possible that you run your ubuntu with wsl on windows? ^M at the error is normally a "git config messed up" sign.
I had the same error and solved it by removing the plugin (in ~/.oh-my-zsh/custom/plugins/zsh-autosuggestion), changing the git CRLF handling:
git config --global core.autocrlf false git config --global core.eol lf
and re-installing it. Maybe it's working for you too.
This worked for me,
I changed the config git and re-installing plugins.
Thanks.
I'm not in ubuntu under WSL, but your git configuration totally made it work for me.
Thanks @johnsi15 . This solution also worked for me with the autosuggestion and syntax highlighting plugins.
https://github.com/ohmyzsh/ohmyzsh
Manual Inspection
It's a good idea to inspect the install script from projects you don't yet know. You can do that by downloading the install script first, looking through it so everything looks normal, then running it:
wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh sh install.sh
If the above URL times out or otherwise fails, you may have to substitute the URL for https://install.ohmyz.sh to be able to get the script
git config --global core.eol lf
This. rm -Rf your/dir/of/plugins/zsh-autosugg and git clone again
Describe the bug
After installing zsh-autosuggestions on
oh-my-zsh
, after reloading zsh I always get:To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
.zshrc
file and add the plugin:zsh
on the terminal.Expected behavior
No error message should be displayed and plugin loaded.
Desktop