mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 05:43:11 +00:00
[zpool] Improve ZFS completions
Do not show devices already part of a zpool on calls to `zpool add` and the converse.
This commit is contained in:
parent
332287708b
commit
c560240abc
1 changed files with 2 additions and 2 deletions
|
@ -205,8 +205,8 @@ if test $OS = Linux
|
|||
complete -c zpool -f -n '__fish_zpool_using_command add' -s P -d 'Display device full path'
|
||||
complete -c zpool -x -n '__fish_zpool_using_command add' -s o -d 'Pool property' -a '(__fish_zpool_list_device_properties)'
|
||||
end
|
||||
complete -c zpool -x -n '__fish_zpool_using_command add' -d 'Pool to add virtual devices to' -a '(__fish_complete_zfs_pools)'
|
||||
complete -c zpool -x -n '__fish_zpool_using_command add' -d 'Virtual device to add' -a '(__fish_zpool_complete_vdevs)'
|
||||
complete -c zpool -x -n '__fish_zpool_using_command add; and __fish_prev_arg_in add' -d 'Pool to add virtual devices to' -a '(__fish_complete_zfs_pools)'
|
||||
complete -c zpool -x -n '__fish_zpool_using_command add; and not __fish_prev_arg_in add' -d 'Virtual device to add' -a '(__fish_zpool_complete_vdevs)'
|
||||
|
||||
# attach completions
|
||||
complete -c zpool -f -n '__fish_zpool_using_command attach' -s f -d 'Force use of virtual device'
|
||||
|
|
Loading…
Reference in a new issue