mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-07-11 16:51:26 +02:00
36642: complete jail/unjail zfs subcommands on freebsd
This commit is contained in:
parent
878d1272fd
commit
c6028f7387
2 changed files with 11 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
2015-10-19 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 36642: Eric Cook: Completion/Unix/Command/_zfs:
|
||||
complete jail/unjail subcommands on freebsd
|
||||
|
||||
* 36646: Eric Cook: Completion/Unix/Type/_zfs_dataset,
|
||||
Completion/Unix/Command/_zpool, Completion/Unix/Command/_zfs:
|
||||
solaris/openzfs differences; only use -t share solaris
|
||||
|
|
|
@ -20,6 +20,8 @@ _zfs() {
|
|||
"diff" "key" "help"
|
||||
)
|
||||
|
||||
[[ $OSTYPE == freebsd<7->.* ]] && subcmds+=(jail unjail)
|
||||
|
||||
share_nfs_ro_properties=(
|
||||
"share.nfs.all"
|
||||
)
|
||||
|
@ -533,6 +535,12 @@ _zfs() {
|
|||
':filesystem or volume:_zfs_dataset -t fs -t vol'
|
||||
;;
|
||||
|
||||
("jail"|"unjail")
|
||||
_arguments \
|
||||
'1: : _jails' \
|
||||
'2:filesystem:_zfs_dataset -t fs'
|
||||
;;
|
||||
|
||||
("help")
|
||||
_arguments -A "-*" \
|
||||
- set1 \
|
||||
|
|
Loading…
Reference in a new issue