zsh-users
 help / color / mirror / code / Atom feed
* GLOB_DOTS and special_dirs in coexistense
@ 2001-09-20  1:01 Dennis Haney
  0 siblings, 0 replies; only message in thread
From: Dennis Haney @ 2001-09-20  1:01 UTC (permalink / raw)
  To: zsh-users

I hope someone can help me with this:

I have declared
zstyle ':completion:*' special-dirs '..'
because I really like things like
cd ..
to be expanded to
cd ../
but I dont want it to match when its not the top...
except when its .. again
cd ../../../../ and so on

Lets say I only have a single dir called 'adir' inside 'somedir'.
Then when writing
cd somedir/
when I [TAB] with GLOB_DOTS enabled I get .. as an option.
If I turn off GLOB_DOTS it works just fine (expanding to 'adir'
since its the only option) but I really like GLOB_DOTS...

Also I dont want
cd .
expanded to
cd ../
if there are other dot-file(s)/dot-dir(s)

same goes for ls and all other dir and file completeres...

So how do I make this work?
preferable without compctl...

its zsh 4.0.2 if its any help.


-- 
Dennis
use Inline C => qq{void p(char*g){printf("Just Another %s Hacker\n",g);}};p("Perl");



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-09-20  1:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-20  1:01 GLOB_DOTS and special_dirs in coexistense Dennis Haney

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).