Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Completing a unique prefix of "script" completes "script"
- X-seq: zsh-users 10583
- From: "Nikolai Weibull" <now@xxxxxxxx>
- To: "Zsh Users' List" <zsh-users@xxxxxxxxxx>
- Subject: Completing a unique prefix of "script" completes "script"
- Date: Thu, 10 Aug 2006 22:17:30 +0200
- 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=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Sender: nikolai.weibull@xxxxxxxxx
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author