zsh-workers
 help / color / mirror / code / Atom feed
From: Tanaka Akira <akr@jaist.ac.jp>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: _apt-get and _deb_packages
Date: 06 Sep 1999 00:08:40 +0900	[thread overview]
Message-ID: <rsq671pl7k7.fsf@crane.jaist.ac.jp> (raw)
In-Reply-To: Clint Adams's message of "Sat, 4 Sep 1999 10:49:42 -0400"

In article <19990904104942.B17943@dman.com>,
  Clint Adams <schizo@debian.org> writes:

> I don't think so.  I frequently use 'install' to upgrade a set of
> packages that are already installed.

Hm. I modified _apt-get to complete installed packages if current word
doesn't match uninstalled packages.

Index: Completion/Debian/_apt-get
===================================================================
RCS file: /projects/zsh/zsh/Completion/Debian/_apt-get,v
retrieving revision 1.1.1.2
diff -u -F^( -r1.1.1.2 _apt-get
--- _apt-get	1999/09/03 23:19:14	1.1.1.2
+++ _apt-get	1999/09/05 15:06:12
@@ -30,7 +30,7 @@
     compadd "$@" - update upgrade dselect-upgrade dist-upgrade install remove source check clean autoclean help
   else
     case "$words[1]" in
-      install) _deb_packages uninstalled "$@";;
+      install) _deb_packages uninstalled "$@" || _deb_packages installed "$@";;
       remove) _deb_packages installed "$@";;
       *) _deb_packages avail "$@";;
     esac
-- 
Tanaka Akira


      reply	other threads:[~1999-09-05 15:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-02 21:14 Tanaka Akira
1999-09-03 20:30 ` Falk Hueffner
1999-09-03 23:17   ` Tanaka Akira
1999-09-04 14:49   ` Clint Adams
1999-09-05 15:08     ` Tanaka Akira [this message]

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=rsq671pl7k7.fsf@crane.jaist.ac.jp \
    --to=akr@jaist.ac.jp \
    --cc=zsh-workers@sunsite.auc.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).