ZFS Bash completion¶
Assuming you already have Homebrew installed¶
# macos
brew install bash-completion
# Add the following lines to your ~/.bash_profile:
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
# debian
apt install bash-completion
# freebsd
make install -C /usr/ports/shells/bash-completion
Install the ZFS bash completions:¶
cd /usr/local/etc/bash_completion.d
curl -O https://work.rootlocal.ru/attachments/download/144/zfs.tgz
tar -vxf zfs.tgz && rm zfs.tgz
chmod +x zfs