I recently ran into an issue after installing
docker and adding it to the plugins section in my
.zshrc file, autocomplete just wouldn't work (even though
oh-my-zsh plugin installation is so straightforward).
First make sure your syntax is OK, plugins should be separated by a space only and no commas:
plugins=(git docker docker-compose)
After reloading my
zshrc file with
source ~/.zshrc it still didn't work. I had to delete ZSH's
After that it started working!
.zcompdump is a cached file speeds up auto-completion, but in my case wasn't being regenerated after adding new plugins. Delete this file and ZSH will regenerate it for you.
Other things you can try
If that still doesn't work for then try the following:
- Move the
export ZSH=$HOME/.oh-my-zshline after the
source $ZSH/oh-my-zsh.shto the end of the file
Don't forget to run
source ~/.zshrc after making changes to the file.