Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: .. completion



Danijel Tasov wrote:

> Hello World,
> 
> I'm an enthused zsh-user. 
> 
> I have a Problem with compctl. I don't use any completion
> control, but there is something that bothers me.
> 
> When I type /us it will be completed to /usr/ when pressing TAB,
> but .. will not be completed to ../ like in tcsh. I'm sure there
> is one, but compctl is very cryptic to me, and this is the only
> thing I miss.

Bart already pointed you to the new completion system.

If, for some reason, you can't use that, the way to make completion with
compctl accept `..' as a possible match (which in turn makes it add the
slash) is to add `-g ".."' to all your compctl's that generate filenames
as possible matches (using the -f, -/ or -g options -- in the last case
you can just add the `..' to -g's already existing argument).


Bye
  Sven


-- 
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author