about summary refs log tree commit diff
path: root/Completion/Unix/Type/_zfs_dataset
diff options
context:
space:
mode:
authorDanek Duvall <duvall@comfychair.org>2014-01-02 11:52:24 -0800
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2014-01-02 22:26:04 +0000
commitef2eaf1f787370356159bfb402a057d88b934ceb (patch)
tree27d4ce143fa38125c327c16587affa53d24c1b6b /Completion/Unix/Type/_zfs_dataset
parent60372fbda67ba0f61bd0e706f599c1f6e5255f98 (diff)
downloadzsh-ef2eaf1f787370356159bfb402a057d88b934ceb.tar.gz
zsh-ef2eaf1f787370356159bfb402a057d88b934ceb.tar.xz
zsh-ef2eaf1f787370356159bfb402a057d88b934ceb.zip
32261: completion updates for Solaris 11, Update 1
Diffstat (limited to 'Completion/Unix/Type/_zfs_dataset')
-rw-r--r--Completion/Unix/Type/_zfs_dataset3
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