Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

merging consecutive cd commands



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