Oh-my-zsh rustup completion plugin.
Rustup version: 1.18.3 (435397f48 2019-05-22)
First clone the repository repo in the custom zsh plugins folder:
cd ~/.oh-my-zsh/custom/plugins
git clone https://github.com/pkulev/zsh-rustup-completion.git rustup
Open ~/.zshrc:
vim ~/.zshrc
Add the plugin to zsh:
plugins=(... rustup)
Check that autoloading is enabled:
autoload -U compinit && compinit
Reload config:
source ~/.zshrc
Enjoy it!
Completion file depends on rustup version. For updating completion just execute:
./gen-completion.sh
Attention! Executing this file may cause repo updating failure.