Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: _update_alternatives: add missing options in completion
- X-seq: zsh-workers 30023
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: PATCH: _update_alternatives: add missing options in completion
- Date: Wed, 14 Dec 2011 02:13:33 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=ZylYzWO/3spKKGiStEt2ID9IQWkxJmflOAb60Of4mlU=; b=kvsf8EvryadUtnr4jcrGO0AxMqj2selX//fKPFZZZL9agnhZIpPu9ovkJub+6YUF5z jCReczJufi4A73Qoy18ZmLQ4mHwgLryE8fNw3LlK+3CPXI6OmG7SVvu7K5Tge9bwru9V 1AZ8XGBgeTg/Y1hk9hPJIbXvDPehABhYCuslw=
- In-reply-to: <op.v1y9s4owvocxtk@tabole>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <op.v1y9s4owvocxtk@tabole>
2011/9/18 Ole Jørgen Brønner <olejorgenb@xxxxxxxx>:
> (Against 1c2ff6852911c47b1386d72e781b465f140e77eb)
>
> Even though the version in Debian stable doesn't list all these in the
> --help message they are supported. (see man page)
>
> Hopefully I didn't make any mistakes. First time I've messed with completion
> code.
Any reason nobody else committed this?
> ---
> diff --git a/Completion/Debian/Command/_update-alternatives
> b/Completion/Debian/Command/_update-al
> index dd1d4fc..47cda1a 100644
> --- a/Completion/Debian/Command/_update-alternatives
> +++ b/Completion/Debian/Command/_update-alternatives
> @@ -16,11 +16,21 @@ _arguments -C \
> '--version' \
> '--altdir:altdir:_files -/' \
> '--admindir:admindir:_files -/' \
> + '--log:log file:_files -/' \
> + '--force' \
> + '--skip-auto' \
> '--install:*::alt:= ->install' \
> '--remove:*::alt:= ->remove' \
> + '--remove-all:name:_files -W $alterdir' \
> '--auto:name:_files -W $alterdir' \
> '--display:name:_files -W $alterdir' \
> - '--config:name:_files -W $alterdir' && return
> + '--query:name:_files -W $alterdir' \
> + '--list:name:_files -W $alterdir' \
> + '--get-selections' \
> + '--set-selections' \
> + '--config:name:_files -W $alterdir' \
> + '--set:name:_files -W $alterdir:path:_files -/' \
> + '--all' && return
>
> while true; do
> case "$state" in
>
> --
>
> Ole Jørgen Brønner
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author