From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25323 invoked by alias); 4 Dec 2013 15:33:01 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18197 Received: (qmail 28321 invoked from network); 4 Dec 2013 15:32:55 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.2 Date: Wed, 4 Dec 2013 16:25:17 +0100 From: "Christoph (Stucki) von Stuckrad" To: zsh-users@zsh.org Subject: Re: directory alias Message-ID: <20131204152517.GF2778@localhost.mi.fu-berlin.de> Mail-Followup-To: zsh-users@zsh.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: "Chr. von Stuckrad" X-Originating-IP: 160.45.113.41 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 \ 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/