Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] local scope cmds_<1-6> parameters in _btrfs
On 10/08/2013 12:52 PM, Eric Cook wrote:
> ---
> Completion/Linux/Command/_btrfs | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Completion/Linux/Command/_btrfs b/Completion/Linux/Command/_btrfs
> index eac8270..da2514e 100644
> --- a/Completion/Linux/Command/_btrfs
> +++ b/Completion/Linux/Command/_btrfs
> @@ -1,7 +1,7 @@
> #compdef btrfs
>
> local curcontext="$curcontext" curstate state line expl grp cmd ret=1
> -local -a groups args
> +local -a groups args cmds_1 cmds_2 cmds_3 cmds_4 cmds_5 cmds_6
>
> groups=( subvolume filesystem device scrub balance inspect-internal help version )
> cmds_1=( create delete list snapshot get-default set-default find-new help )
Appears the body part of the email didn't go through, I noticed that
after using _btrfs interactively, a few new parameters were created.
>From the testing i did, making them local to the completion script
doesn't break anything.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author