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

Re: directory alias



On Tue, 03 Dec 2013, TJ Luoma wrote:

> > I commonly cd into. What I want is a way to do:
> > cd foo
> > and it go to ~/some/deep/directory/tree/foo
> > and
> > cd bar
> > and it go to /usr/local/some/path/bar

IF all the dirs you "cd into" are different, simply
mention all their parents in CDPATH=/.../...1:/.../...2:...:...
and 'cd' will walk these until it finds the given dir.
If you have names more than once, left to right will win.

Stucki

-- 
Christoph von Stuckrad      * * |nickname |Mail <stucki@xxxxxxxxxxxxxxx> \
Freie Universitaet Berlin   |/_*|'stucki' |Tel(Mo.,Mi.):+49 30 838-75 459|
Mathematik & Informatik EDV |\ *|if online|  (Di,Do,Fr):+49 30 77 39 6600|
Takustr. 9 / 14195 Berlin   * * |on IRCnet|Fax(home):   +49 30 77 39 6601/



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