Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
merging consecutive cd commands
- X-seq: zsh-users 4547
- From: Le Wang <lewang@xxxxxxxxx>
- To: Zsh users list <zsh-users@xxxxxxxxxx>
- Subject: merging consecutive cd commands
- Date: Sat, 22 Dec 2001 18:51:04 -0500 (EST)
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author