Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: persistant Directory history?
- X-seq: zsh-users 10946
- From: Stephane Chazelas <Stephane_Chazelas@xxxxxxxx>
- To: chesss <testingagain@xxxxxxxxx>
- Subject: Re: persistant Directory history?
- Date: Mon, 6 Nov 2006 17:40:54 +0000
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <5db995410611060845y53f673e6je029a9c60659f116@xxxxxxxxxxxxxx>
- Mail-followup-to: chesss <testingagain@xxxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <5db995410611060845y53f673e6je029a9c60659f116@xxxxxxxxxxxxxx>
- Sender: Stephane Chazelas <stephane_chazelas@xxxxxxxx>
On Mon, Nov 06, 2006 at 10:15:26PM +0530, chesss wrote:
> Is it possible to have some kind of directory history, taht would last
> after closing the shell?
[...]
I have in ~/.zshrc:
SAVED_DIRSTACK=~/.zsh-dir-stack
[[ -f $SAVED_DIRSTACK ]] && . $SAVED_DIRSTACK
trap '
print -r "dirstack=(${(@qq)dirstack})" > $SAVED_DIRSTACK
' EXIT
--
Stéphane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author