Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Simple Tip of the Day
- X-seq: zsh-users 9738
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Simple Tip of the Day
- Date: Fri, 02 Dec 2005 19:20:48 +0000
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <dfnuo1160g88dl9rd0pig04k6enf7fqpr6@xxxxxxx> <20051202010954.GF8445@xxxxxxxxxxxxx> <x2448e8cq2ur$.1bkmagme4c3nn.dlg@xxxxxxxxxx> <237967ef0512020449p6ff1ec0t4cac7a03601c7d25@xxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
On Fri, 2 Dec 2005 13:49:06 +0100, wrote:
>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.
kool
activate autopushd
> setopt autopushd pushdignoredups
>dirs -v
BTW I'm happer using S=~+ for my purpose as I know it won't move about
--
zzapper
Success for Techies and Vim,Zsh tips
http://SuccessTheory.com/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author