From: Stephane Chazelas <Stephane_Chazelas@yahoo.fr>
To: chesss <testingagain@gmail.com>
Cc: zsh-users@sunsite.dk
Subject: Re: persistant Directory history?
Date: Mon, 6 Nov 2006 21:50:51 +0000 [thread overview]
Message-ID: <20061106215051.GB4323@sc> (raw)
In-Reply-To: <5db995410611061314l26e089b8wb214da46064c8235@mail.gmail.com>
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
next prev parent reply other threads:[~2006-11-06 21:51 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-06 16:45 chesss
2006-11-06 17:40 ` Stephane Chazelas
2006-11-06 21:14 ` chesss
2006-11-06 21:50 ` Stephane Chazelas [this message]
2006-11-07 0:19 ` William Scott
2006-11-07 8:18 ` Stephane Chazelas
2006-11-07 14:22 ` William Scott
2006-11-07 14:52 ` Francisco Borges
2006-11-07 20:19 ` chesss
2006-11-07 23:18 ` Francisco Borges
2006-11-07 23:52 ` Stephane Chazelas
2006-11-08 10:41 ` Francisco Borges
2006-11-08 11:19 ` Stephane Chazelas
2006-11-08 11:35 ` chesss
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061106215051.GB4323@sc \
--to=stephane_chazelas@yahoo.fr \
--cc=testingagain@gmail.com \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).