Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: directory alias
- X-seq: zsh-users 18197
- From: "Christoph (Stucki) von Stuckrad" <stucki@xxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: directory alias
- Date: Wed, 4 Dec 2013 16:25:17 +0100
- In-reply-to: <CADjGqHt4UZVd8DLLK5eHHKrDa-MM5=YQNA2jOynR4kLNbqOw=g@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAH_OBidDmzECfgLVcEUmRj2+bean+WjuBvgiPV6SoE9i0kPfKA@mail.gmail.com> <CADjGqHt4UZVd8DLLK5eHHKrDa-MM5=YQNA2jOynR4kLNbqOw=g@mail.gmail.com>
- Sender: "Chr. von Stuckrad" <stucki@xxxxxxxxxxxxxxx>
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