From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Borsenkow Andrej <Andrej.Borsenkow@mow.siemens.ru>
Cc: ZSH Workers Mailing List <zsh-workers@sunsite.dk>
Subject: Re: Mandrake urpmi suite completion
Date: Mon, 05 Nov 2001 11:25:32 +0000 [thread overview]
Message-ID: <3BE6772C.AD3447B6@yahoo.co.uk> (raw)
In-Reply-To: <3BE468BE.8060900@mow.siemens.ru>
Borsenkow Andrej wrote:
>
> O.K. attached is completion for (part of) urpmi programs on Mandrake.
> Should it go into Completion/Mandrake?
Sounds like as good a place as any.
> Suggestions for it are welcome.
Okay, here's a few suggestions then:
> urpmi )
> "(--help)--auto-select[select the pakages to update]" \
You've got a typo here: ^^^
> case "$state" in
> media_url )
> if compset -P file://; then
> _files -W / -/ && return 0
Is that right? If so, uprmi is using a dodgy file url format. After
file:// it would normally be a hostname with file names occurring after
file:/. You're also losing the _urls feature of completing the current
directory after `file:' which I find really useful.
If it would be useful here, it would be easy to modify _urls to take -/
in addition to -g (which it already takes and passes to _files).
> elif compset -P removable_cdrom_\?://; then
> _files -/ && return 0
> elif compset -P removable_; then
> compadd -S "" -- cdrom_ floppy_ && return 0
> elif [[ -prefix '(ftp|http):' ]]; then
> _url && return 0
Do you mean _urls there?
> else
> compadd -- file:// http:// ftp:// removable_
An _wanted with description would be nice here (and similarly further
above).
Oliver
_____________________________________________________________________
This message has been checked for all known viruses by the
MessageLabs Virus Scanning Service. For further information visit
http://www.messagelabs.com/stats.asp
next prev parent reply other threads:[~2001-11-05 11:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-03 20:16 supress suffix (blank) in completion menu (selection) Borsenkow Andrej
2001-11-03 20:27 ` Bart Schaefer
2001-11-03 21:59 ` Mandrake urpmi suite completion Borsenkow Andrej
2001-11-03 22:35 ` Bart Schaefer
2001-11-05 11:25 ` Oliver Kiddle [this message]
2001-11-10 12:50 ` Chmouel Boudjnah
2001-11-14 14:32 ` PATCH: " Borsenkow Andrej
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=3BE6772C.AD3447B6@yahoo.co.uk \
--to=okiddle@yahoo.co.uk \
--cc=Andrej.Borsenkow@mow.siemens.ru \
--cc=zsh-workers@sunsite.dk \
/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).