After installing zsh-autosuggestions on oh-my-zsh, after reloading zsh I always get:
/home/raul/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh:source:1: no such file or directory: /home/raul/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh^M
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: plugins=(git zsh-autosuggestions)
zsh on the terminal./home/raul/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh:source:1: no such file or directory: /home/raul/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh^M
No error message should be displayed and plugin loaded.
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 lfand 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.
Most helpful comment
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:
and re-installing it. Maybe it's working for you too.