Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: persistant Directory history?
- X-seq: zsh-users 10948
- From: Stephane Chazelas <Stephane_Chazelas@xxxxxxxx>
- To: chesss <testingagain@xxxxxxxxx>
- Subject: Re: persistant Directory history?
- Date: Mon, 6 Nov 2006 21:50:51 +0000
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <5db995410611061314l26e089b8wb214da46064c8235@xxxxxxxxxxxxxx>
- Mail-followup-to: chesss <testingagain@xxxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <5db995410611060845y53f673e6je029a9c60659f116@xxxxxxxxxxxxxx> <20061106174053.GA4323@sc> <5db995410611061314l26e089b8wb214da46064c8235@xxxxxxxxxxxxxx>
- Sender: Stephane Chazelas <stephane_chazelas@xxxxxxxx>
On Tue, Nov 07, 2006 at 02:44:30AM +0530, chesss wrote:
> >I have in ~/.zshrc:
> >
> >SAVED_DIRSTACK=~/.zsh-dir-stack
> >[[ -f $SAVED_DIRSTACK ]] && . $SAVED_DIRSTACK
> >trap '
> > print -r "dirstack=(${(@qq)dirstack})" > $SAVED_DIRSTACK
> >' EXIT
>
> Exactly how will this work?
> What I want is a command that will show me the past directories I have
> cd'ed to. including those from past shells.
Those line just preserve the directory stack. If you've enabled
the completion system, all you need to do is type:
cd +<Tab>
and cycle through your past directories (you may need to set the
auto_pushd option as well).
See the "dirs" command, the auto_pushd option, the dirstack
array, the pushd/popd commands in zsh manual.
--
Stéphane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author