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

Re: Completion of ~ to include dirstack?



On Sun, Oct 07, 2007 at 01:23:39PM +1000, Boyd Adamson wrote:
[...]
> % cd ~-<tab>
> directory stack
> 0 -- /export/home/boyd
> 1 -- /export/home
> 2 -- /opt
> 
> But I get the list in *reverse* order. What I'd really like is this completion:
> 
> % cd ~<tab>
> user
> adm       boyd      fred      listen    noaccess  nobody4   root
> student   uucp
> bin       daemon    gdm       lp        nobody    nuucp     smmsp
> sys       webservd
> 
> to include a section with the directory stack.
> 
> I have a feeling that this is a one-liner, but I've always found the
> zstyle system a bit bewildering.
[...]

Not an answer to your question, but personally, I do

$ cd +<Tab>

-- 
Stéphane



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