Zsh completion for lxc and lxd commands of LXD.
This way is recommended. The lxc command updates frequently and this repository as its completion does the same. Therefore, using a plugin manager, you can get the immediate updates when I apply them.
antigen bundle 'endaaman/lxd-completion-zsh'zplug 'endaaman/lxd-completion-zsh'- Clone this repository in oh-my-zsh's plugins directory:
git clone https://github.com/endaaman/lxd-completion-zsh ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/lxd-completion-zsh- Activate the plugin in ~/.zshrc:
plugins=( [plugins...] lxd-completion-zsh)- Restart zsh (such as by opening a new instance of your terminal emulator).
Put _lxc file into $fpath directory (e.g. defining fpath=(~/.zsh/completion $fpath), place it in ~/.zsh/completion)
MIT