LXD auto completion plugin untuk oh-my-zsh

Pertama masuk ke direktori custom plugin oh-my-zsh

1
cd /usr/share/oh-my-zsh/custom/plugins

Lalu, clone repo milik endaaman

1
sudo git clone https://github.com/endaaman/lxd-completion-zsh.git

Selanjutnya, masuk ke folder hasil clone kemudian lakukan symlink

1
2
cd lxd-completion-zsh
sudo ln -sf _lxc lxd-completion-zsh.plugin.zsh

Terakhir, edit zshrc untuk load plugin

1
vim ~/.zshrc
1
2
3
4
plugins=(
    ...
    lxd-completion-zsh
)

Tes dah,

1
2
3
4
5
6
7
$ lxc st+TAB
start    -- Start containers
stop     -- Stop containers
storage  -- Manage storage pools and volumes

$ lxc start +TAB
kmaster   tpl-kube

Cool!