summaryrefslogtreecommitdiffstats
path: root/Completion/Unix
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2025-09-29 14:32:10 +0200
committerOliver Kiddle <opk@zsh.org>2025-09-29 14:32:10 +0200
commit6f6cdea2b3a587604541dcc459aa326d6ff93152 (patch)
tree9ce1f4cf288c9f184403925591c9316b53635a96 /Completion/Unix
parent53969: completion updates for Unix utilities in macOS 15.5 (diff)
downloadzsh-6f6cdea2b3a587604541dcc459aa326d6ff93152.tar
zsh-6f6cdea2b3a587604541dcc459aa326d6ff93152.tar.gz
zsh-6f6cdea2b3a587604541dcc459aa326d6ff93152.tar.bz2
zsh-6f6cdea2b3a587604541dcc459aa326d6ff93152.tar.lz
zsh-6f6cdea2b3a587604541dcc459aa326d6ff93152.tar.xz
zsh-6f6cdea2b3a587604541dcc459aa326d6ff93152.tar.zst
zsh-6f6cdea2b3a587604541dcc459aa326d6ff93152.zip
53970 based on github #131 by Christopher Bock: complete all dataset properties for zfs allow and support comma separated list for zfs scripts
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/_zfs16
1 files changed, 8 insertions, 8 deletions
diff --git a/Completion/Unix/Command/_zfs b/Completion/Unix/Command/_zfs
index ef4b80a41..cfbb3db4d 100644
--- a/Completion/Unix/Command/_zfs
+++ b/Completion/Unix/Command/_zfs
@@ -300,12 +300,6 @@ case $OSTYPE in
;;
esac
-delegatable_perms+=(
- allow clone create destroy diff hold key keychange mount promote receive
- release rename rollback send share snapshot groupquota groupused userprop
- userused ${ci_ds_props%%:*}
-)
-
key_properties=(
'keylocation:location [prompt]:_files -P file\:// -W /'
'keyformat:format:(raw hex passphrase)'
@@ -316,6 +310,12 @@ ro_ds_props+=( $share_ro_properties )
rw_ds_props+=( $share_rw_properties )
ci_ds_props+=( $rw_ds_props )
+delegatable_perms+=(
+ allow clone create destroy diff hold key keychange mount promote receive
+ release rename rollback send share snapshot groupquota groupused userprop
+ userused ${ci_ds_props%%:*}
+)
+
ds_propnames=( ${rw_ds_props%%:*} )
po_propnames=( ${ro_po_props%%:*} ${ci_po_props%%:*} ${rw_po_props%%:*} )
@@ -1080,7 +1080,7 @@ case $service:$words[1] in
zpool:iostat)
if [[ $implementation = openzfs ]]; then
args=(
- '-c[run scripts on each vdev]:script:_files -W "($ZPOOL_SCRIPTS_PATH /etc/zfs/zpool.d ~/.zpool.d)"'
+ '-c+[run scripts on each vdev]:script:_sequence _files -W "($ZPOOL_SCRIPTS_PATH /etc/zfs/zpool.d ~/.zpool.d)"'
'-g[display vdev GUIDs instead of normal device names]'
'-H[suppress headers and tab-delimit fields]'
'-L[display real paths for vdevs resolving all symbolic links]'
@@ -1249,7 +1249,7 @@ case $service:$words[1] in
args=(
'--power[display vdev enclosure slot power status]'
'-D[display a histogram of deduplication statistics]'
- '-c[run scripts on each vdev]:script:_files -W "($ZPOOL_SCRIPTS_PATH /etc/zfs/zpool.d ~/.zpool.d)"'
+ '-c+[run scripts on each vdev]:script:_sequence _files -W "($ZPOOL_SCRIPTS_PATH /etc/zfs/zpool.d ~/.zpool.d)"'
'-e[only show unhealthy vdevs]'
'-i[display vdev initialization status]'
'-g[display vdev GUIDs instead of the normal device names]'