LXD auto completion plugin untuk oh-my-zsh
Posted on
Pertama masuk ke direktori custom plugin oh-my-zsh
cd /usr/share/oh-my-zsh/custom/plugins
Lalu, clone repo milik endaaman
sudo git clone https://github.com/endaaman/lxd-completion-zsh.git
Selanjutnya, masuk ke folder hasil clone kemudian lakukan symlink
cd lxd-completion-zsh
sudo ln -sf _lxc lxd-completion-zsh.plugin.zsh
Terakhir, edit zshrc untuk load plugin
vim ~/.zshrc
plugins=(
...
lxd-completion-zsh
)
Tes dah,
$ lxc st+TAB
start -- Start containers
stop -- Stop containers
storage -- Manage storage pools and volumes
$ lxc start +TAB
kmaster tpl-kube
Cool!