mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 20:25:25 +08:00

This patch adds completions for the values of properties, emitted once the current token matches the name of a zfs property in full, for the various places where such a property can be assigned. e.g. zfs set canmoun<TAB> continues to only provide "canmount" as a completion, but zfs set canmount<TAB> will provide a list of all valid values for the property. The existing code made an attempt to complete the values for the specific case of `zfs set PROP=` but I could never get it to work for me under FreeBSD, so I presume it was Linux-specific. This patch should be cross-platform and extends the completions to anywhere where a property may be set.