From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 838 invoked from network); 28 Mar 2006 23:47:44 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.1 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 28 Mar 2006 23:47:44 -0000 Received: (qmail 53690 invoked from network); 28 Mar 2006 23:47:37 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 28 Mar 2006 23:47:37 -0000 Received: (qmail 15686 invoked by alias); 28 Mar 2006 23:47:30 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10098 Received: (qmail 15676 invoked from network); 28 Mar 2006 23:47:29 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 28 Mar 2006 23:47:29 -0000 Received: (qmail 52577 invoked from network); 28 Mar 2006 23:47:29 -0000 Received: from xproxy.gmail.com (66.249.82.193) by a.mx.sunsite.dk with SMTP; 28 Mar 2006 23:47:28 -0000 Received: by xproxy.gmail.com with SMTP id h26so29077wxd for ; Tue, 28 Mar 2006 15:47:27 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Epvn7Jk53I1EwxMsC1RrABx2hHWw1IU7sRTVcwKy9GNT+DknmcHZOjqjOjM9slmYmkrLKA+pUrqmu+blJyeBaMg7v5oEXwkm6Zzxq1frAII9pYQTO05vdUs9gO3worZ66RxTVxdQ0RBOxrln7zUoZQ/+IWdK6CWMs1p9DpGtUg8= Received: by 10.70.112.10 with SMTP id k10mr128801wxc; Tue, 28 Mar 2006 15:47:27 -0800 (PST) Received: by 10.70.118.15 with HTTP; Tue, 28 Mar 2006 15:47:27 -0800 (PST) Message-ID: Date: Tue, 28 Mar 2006 23:47:27 +0000 From: "Christopher Browne" To: zsh-users@sunsite.dk Subject: Using custom completion... MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Dominic Mitchell had set up a sample completion for psql: http://www.zsh.org/mla/users/2004/msg01006.html [it's pretty obvious which bits are script, and which aren't] I'm not entirely sure what I need to do to get it operating. It appears as though an appropriate place to stow it on my system is thus: /usr/share/zsh/4.3.2/functions/Completion/Unix/_psql I'm not sure if I need to run anything extra to get it to be noticed; it doesn't seem to be turning quite right, as I'm seeing ill output: _arguments:comparguments:208: invalid argument: cbbrowne@dba2:~> I'd be more than happy to help contribute whatever assistance to getting bits of it working that I can; I'm in a pretty "psql-happy" environment, so improving globbing on this is no bad thing ;-). -- http://www3.sympatico.ca/cbbrowne/linux.html "The true measure of a man is how he treats someone who can do him absolutely no good." -- Samuel Johnson, lexicographer (1709-1784)