Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Simple Tip of the Day
- X-seq: zsh-users 9736
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Simple Tip of the Day
- Date: Fri, 2 Dec 2005 13:49:06 +0100
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=We+h9XHPWruMIlw6Xkz54pFMs0R1LT/Ffx1Akp1qe9zub/b9ghqc739raxWhsJlq2Hs/PZuFr+NG+FcMFZVMR1/SS32AWFn+EteqvL3L7wcFiFTfoq5lI+cKwnRfKK1uRGY7tMEp+7z/WYnUrD1g+j6kNVoy8O1ccuGPK59rMsA=
- In-reply-to: <x2448e8cq2ur$.1bkmagme4c3nn.dlg@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <dfnuo1160g88dl9rd0pig04k6enf7fqpr6@xxxxxxx> <20051202010954.GF8445@xxxxxxxxxxxxx> <x2448e8cq2ur$.1bkmagme4c3nn.dlg@xxxxxxxxxx>
On 12/2/05, Thorsten Kampe <thorsten@xxxxxxxxxxxxxxxx> wrote:
> * Vincent Lefevre (2005-12-02 01:09 +0100)
> > On 2005-12-01 20:38:16 +0000, zzapper wrote:
> >>>cd /xx/yy/ggg/ccc/
> >> type
> >>>S=`pwd`
> >
> > You could use $PWD instead of `pwd`.
>
> Use zsh's autopushd option and refer to "S" as ~1 (or ~n). That's much
> simpler.
I type ~- and then press tab to get a list of all the dirs i've been
in, and ~+ is the shortest alias for $PWD that i found.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author