zfs completion script for oh-my-zsh.
oh-my-zsh has many complete plugins, such as pip, docker and git. But I often use zfs in my work, so I try to write a zsh completion script with zfs.
not use zfs-completion
use zfs-completion
-
Clone this repository in oh-my-zsh's plugins directory:
git clone https://github.com/luoxu34/zfs-completion.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zfs-completion
-
Activate the plugin in
~/.zshrc
:plugins=( [plugins...] zfs-completion)
-
Source
~/.zshrc
to take changes into account:source ~/.zshrc