I noticed that thezpool <TAB> completion does not work until after one has already run zfs <TAB>.
This seems to be due to the fact that /usr/share/bash-completion/completions/zpool does not exist but/usr/share/bash-completion/completions/zfs does.
A simple "fix" that worked for me is to symlink /usr/share/bash-completion/completions/zfs to /usr/share/bash-completion/completions/zpool or sourceing the /usr/share/bash-completion/completions/zfs file.
Describe how to reproduce the problem
Open a new shell, type zpool and press TAB
Type zfs and press TAB
Type zpool and press TAB
Note the difference between 1 and 3.
Include any warning/errors/backtraces from the system logs
System information
Describe the problem you're observing
I noticed that the
zpool <TAB>
completion does not work until after one has already runzfs <TAB>
. This seems to be due to the fact that/usr/share/bash-completion/completions/zpool
does not exist but/usr/share/bash-completion/completions/zfs
does. A simple "fix" that worked for me is to symlink/usr/share/bash-completion/completions/zfs
to/usr/share/bash-completion/completions/zpool
orsource
ing the/usr/share/bash-completion/completions/zfs
file.Describe how to reproduce the problem
zpool
and pressTAB
zfs
and pressTAB
zpool
and pressTAB
1
and3
.Include any warning/errors/backtraces from the system logs