From: Le Wang <lewang@yahoo.com>
To: Zsh users list <zsh-users@sunsite.dk>
Subject: merging consecutive cd commands
Date: Sat, 22 Dec 2001 18:51:04 -0500 (EST) [thread overview]
Message-ID: <20011222235104.84129.qmail@web12303.mail.yahoo.com> (raw)
Hi,
Is there an option that allows consecutive cd or pushd
commands to modify the top entry in the cd stack and
command history, instead of adding to it?
e.g.
---------------------------
LE-XP% setopt autopushd
LE-XP% cd temp
LE-XP% cd temp2
LE-XP% dirs
~/temp/temp2 ~/temp ~
LE-XP% history
1 setopt autopushd
2 cd temp
3 cd temp2
4 dirs
LE-XP%
---------------------------
becomes
---------------------------
LE-XP% setopt autopushd
LE-XP% cd temp
LE-XP% cd temp2
LE-XP% dirs
~/temp/temp2 ~
LE-XP% history
1 setopt autopushd
2 cd temp/temp2
4 dirs
LE-XP%
---------------------------
Thanks
-lw
______________________________________________________
Send your holiday cheer with http://greetings.yahoo.ca
next reply other threads:[~2001-12-22 23:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-22 23:51 Le Wang [this message]
2002-01-06 5:32 ` Bart Schaefer
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=20011222235104.84129.qmail@web12303.mail.yahoo.com \
--to=lewang@yahoo.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).