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

Re: Simple Tip of the Day



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