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

Re: Directory completion



Michael Barnes wrote:
> On Tue, Oct 27, 1998 at 02:00:13AM +0000, Gossamer wrote:
> > I have cd aliased to 'c', and wanted to get it so it only completed
> > on directories ... the obvious seemed to be this:
> Geesh, and i though i was lazy :)
 
*laughs*  Actually I was simplifying.  It's this:

c() { builtin cd $1 && ls --color -p -s; }


bekj

-- 
: --Neophilic-Hacker-Grrl-Geek-Eclectic-Gay-Disabled-Boychick--
: gossamer@xxxxxxxxxxxxxx  http://www.tertius.net.au/~gossamer/
: Let me show you yesterday, the future in the sand.  Let me find
: eternity right here within your hands.  -- Cadhla



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