From: Eric Cook <llua@gmx.com>
To: zsh-workers@zsh.org
Subject: [PATCH 2/2] _zfs: complete jail/unjail subcommands on freebsd
Date: Sat, 26 Sep 2015 14:00:42 -0400 [thread overview]
Message-ID: <1443290442-7394-2-git-send-email-llua@gmx.com> (raw)
In-Reply-To: <1443290442-7394-1-git-send-email-llua@gmx.com>
---
Completion/Unix/Command/_zfs | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/Completion/Unix/Command/_zfs b/Completion/Unix/Command/_zfs
index 04a92e6..f3869da 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 \
--
2.5.1
next prev parent reply other threads:[~2015-09-26 18:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-26 18:00 [PATCH 1/2] _zfs_dataset: only use -t share solaris systems Eric Cook
2015-09-26 18:00 ` Eric Cook [this message]
2015-09-26 19:10 ` [PATCH 1/2 v2] " Eric Cook
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1443290442-7394-2-git-send-email-llua@gmx.com \
--to=llua@gmx.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).