aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorGrischa Zengel <[email protected]>2020-06-11 02:51:15 +0200
committerGitHub <[email protected]>2020-06-10 17:51:15 -0700
commit2bc07c6dfff616da76637b8b31d55fa11a7f542b (patch)
treee62fce503dd442e812430629413480c14c2c9092 /contrib
parentf66434268cef381b2799c45c654162bfb8e128ce (diff)
bash_completion: add missing attributes
There a some attributes missing which are shown in man pages: zfs list -t type A comma-separated list of types to display, where type is one of filesystem, snapshot, volume, *bookmark*, or all. For example, specifying -t snapshot displays only snapshots. zfs get -s source A comma-separated list of sources to display. Those properties coming from a source other than those in this list are ignored. Each source must be one of the following: local, default, inherited, temporary, *received*, and none. The default value is all sources. zfs get -t type A comma-separated list of types to display, where type is one of filesystem, snapshot, volume, bookmark, or all. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Grischa Zengel <[email protected]> Closes #10418
Diffstat (limited to 'contrib')
-rw-r--r--contrib/bash_completion.d/zfs6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/bash_completion.d/zfs b/contrib/bash_completion.d/zfs
index 914db43cb..078ba1eb2 100644
--- a/contrib/bash_completion.d/zfs
+++ b/contrib/bash_completion.d/zfs
@@ -209,10 +209,10 @@ __zfs_complete()
COMPREPLY=($(compgen -W "" -- "$cur"))
;;
-t)
- __zfs_complete_multiple_options "filesystem volume snapshot all" "$cur"
+ __zfs_complete_multiple_options "filesystem volume snapshot bookmark all" "$cur"
;;
-s)
- __zfs_complete_multiple_options "local default inherited temporary none" "$cur"
+ __zfs_complete_multiple_options "local default inherited temporary received none" "$cur"
;;
-o)
__zfs_complete_multiple_options "name property value source received all" "$cur"
@@ -242,7 +242,7 @@ __zfs_complete()
COMPREPLY=($(compgen -W "" -- "$cur"))
;;
-t)
- __zfs_complete_multiple_options "filesystem volume snapshot all" "$cur"
+ __zfs_complete_multiple_options "filesystem volume snapshot bookmark all" "$cur"
;;
-o)
__zfs_complete_multiple_options "$(__zfs_get_properties)" "$cur"