diff options
Diffstat (limited to 'Completion/Unix/Type/_zfs_dataset')
-rw-r--r-- | Completion/Unix/Type/_zfs_dataset | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Completion/Unix/Type/_zfs_dataset b/Completion/Unix/Type/_zfs_dataset index d862011ac..64e343f3a 100644 --- a/Completion/Unix/Type/_zfs_dataset +++ b/Completion/Unix/Type/_zfs_dataset @@ -14,6 +14,7 @@ zparseopts -D -E e:=expl_type_arr p=paths_allowed r1=rsrc r2=rdst t+:=type [[ -n $type[(r)fs] ]] && typearg=( filesystem ) [[ -n $type[(r)vol] ]] && typearg=( $typearg volume ) [[ -n $type[(r)snap] ]] && typearg=( $typearg snapshot ) +[[ -n $type[(r)share] ]] && typearg=( $typearg share ) if [[ -n $typearg ]]; then typearg=( -t ${(j:,:)typearg} ) # We know we're in zfs list if paths_allowed is non-empty. @@ -34,7 +35,7 @@ if [[ ${#rsrc} -gt 0 ]]; then elif [[ -n $words[(r)-p] ]]; then typearg=( -t filesystem,volume ) else - typearg=( -t filesystem,snapshot,volume ) + typearg=( -t filesystem,share,snapshot,volume ) fi fi |