From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26497 invoked from network); 10 Aug 2006 20:17:49 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) 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.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 10 Aug 2006 20:17:49 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 79416 invoked from network); 10 Aug 2006 20:17:41 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 10 Aug 2006 20:17:41 -0000 Received: (qmail 5203 invoked by alias); 10 Aug 2006 20:17:34 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10583 Received: (qmail 5193 invoked from network); 10 Aug 2006 20:17:34 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 10 Aug 2006 20:17:34 -0000 Received: (qmail 78403 invoked from network); 10 Aug 2006 20:17:34 -0000 Received: from wx-out-0506.google.com (66.249.82.233) by a.mx.sunsite.dk with SMTP; 10 Aug 2006 20:17:32 -0000 Received: by wx-out-0506.google.com with SMTP id s7so581709wxc for ; Thu, 10 Aug 2006 13:17:31 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=j+chE1yB3MBeH7TyGe6TOEpmDKCECVEaBb8wS63S3bmx6OsU60338lHh99V/WkWWsexm7ZZIM2EsQk4JA1XrpCfx7gzAemMnBormFDgcnfd6T11uxt+M598tLS0H3wCxEChhebT3XBoFEuK1+qNqW+aLBEzeEq3+RwnjPY2yxCU= Received: by 10.78.159.7 with SMTP id h7mr1715997hue; Thu, 10 Aug 2006 13:17:30 -0700 (PDT) Received: by 10.78.178.17 with HTTP; Thu, 10 Aug 2006 13:17:30 -0700 (PDT) Message-ID: Date: Thu, 10 Aug 2006 22:17:30 +0200 From: "Nikolai Weibull" Sender: nikolai.weibull@gmail.com To: "Zsh Users' List" Subject: Completing a unique prefix of "script" completes "script" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: a4e9cfbda18692a1 Yes, it's true, that's precisely what you'd expect. However, when working with ruby-on-rails, you often run scripts in the "script" subdirectory. This is made somewhat harder by the fact that util-linux installs a program called "script" in your bindir. Thus, whenever you're in a ruby-on-rails root-directory you wind up completing a unique prefix of "script" as "script ", i.e., with the added space and completion is finished. But I never want to complete that script command. What I want is the completion of the directory name. Is there a way to make sure that both options, i.e., "script/" and "script ", are completed? Also, is there a way to ignore the command "script" found in $path? Using the ignored-patterns style doesn't work, of course. And that's basically the only thing I was able to think of. Up until a non-unique prefix both "script" as a command and "script/" as an executable or directory are listed. nikolai