diff options
| author | Eric Cook <llua@gmx.com> | 2015-10-19 16:00:21 +0200 |
|---|---|---|
| committer | Oliver Kiddle <opk@zsh.org> | 2015-10-19 16:07:43 +0200 |
| commit | c6028f7387ad496ade9daaf76ac1683c3002bbf7 (patch) | |
| tree | 155184e1dd274e9523e8981e7cb935fdf73ce19e /Completion/Unix/Command/_zfs | |
| parent | 36646: handle solaris/openzfs differences; only use -t share on solaris (diff) | |
| download | zsh-c6028f7387ad496ade9daaf76ac1683c3002bbf7.tar zsh-c6028f7387ad496ade9daaf76ac1683c3002bbf7.tar.gz zsh-c6028f7387ad496ade9daaf76ac1683c3002bbf7.tar.bz2 zsh-c6028f7387ad496ade9daaf76ac1683c3002bbf7.tar.lz zsh-c6028f7387ad496ade9daaf76ac1683c3002bbf7.tar.xz zsh-c6028f7387ad496ade9daaf76ac1683c3002bbf7.tar.zst zsh-c6028f7387ad496ade9daaf76ac1683c3002bbf7.zip | |
36642: complete jail/unjail zfs subcommands on freebsd
Diffstat (limited to 'Completion/Unix/Command/_zfs')
| -rw-r--r-- | Completion/Unix/Command/_zfs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_zfs b/Completion/Unix/Command/_zfs index 04a92e685..f3869da43 100644 --- a/Completion/Unix/Command/_zfs +++ b/Completion/Unix/Command/_zfs @@ -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 \ |
