Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: making `cd` work unquoted
- X-seq: zsh-users 14288
- From: Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: making `cd` work unquoted
- Date: Wed, 5 Aug 2009 19:30:58 -0700
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=d200902; d=spodhuis.org; h=Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; b=U8D1Swm+24D4e/utHB0hnh4KXpOiE2aUZRg9MhuAjLT06sIH3FBb1xwPzYKuATTu9HGowXuW72UHUYHk61RSNEcOTXBjB54W7fTy+gzosc6DO1VtQ5b8pU1BHrotWAnPpOWZyvrlzOCLWHz+3fWqPBBl4YUEdF6P6FaQ2QwDiBo=;
- In-reply-to: <20090805124757.6a8ca66b@xxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20090725091008.7af5b873@xxxxxxxxx> <090725111722.ZM23913@xxxxxxxxxxxxxxxxxxxxxx> <chaz20090726110349.GA5452@xxxxxxxxxxx> <20090805074009.3074ba93@xxxxxxxxx> <CCB88E77-6F5E-4058-8077-0FA1E06727EB@xxxxxxxxxxx> <20090805124757.6a8ca66b@xxxxxxxxx>
On 2009-08-05 at 12:47 -0700, spiralofhope wrote:
> On Wed, 5 Aug 2009 17:14:03 +0200
> Sebastian Stark <seb-zsh@xxxxxxxxxxx> wrote:
>
> > You would also have to deal with the special case cd with two
> > arguments:
> >
> > Consider you are in /home/userA/tmp
> >
> > cd userA userB
> >
> > would lead you to /home/userB/tmp
>
> I tried this out, and it's interesting. I didn't realise this was
> possible. I can't imagine why I'd want to do this though.
I have multiple perforce clients, under a common area, sometimes with
common directories from the depot mapped. It's *very* convenient, when
five levels deep inside the client, to be able to switch to the
corresponding directory in another client. Often, it's as simple as:
% cd 1 2
Imagine paths like:
/home/me/p4/client1/hierarchy/java/com/example/project/sub-system/component/
to get the full impact.
Regards,
-Phil
Messages sorted by:
Reverse Date,
Date,
Thread,
Author