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

Re: Simple Tip of the Day



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