This is an etcdctl autocomplete plugin for oh-my-zsh.
First, install the etcd-completion rubygem.
gem install etcd-completion
The next step varies depending on how you use zsh. Instructions included for antigen and oh-my-zsh.
Install the bundle by editing your .zshrc file:
antigen bundle sheax0r/etcdctl-zsh
git clone https://github.com/sheax0r/etcdctl-zsh.git ~/.zsh/custom/plugins/etcdctl-zsh
plugins=(...git vagrant etcdctl-zsh...)
- Use etcdctl as usual:
etcdctl <command> <path>
- Autocompletion will function on commands.
- Autocompletion will function on paths too.