From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11044 invoked from network); 22 Dec 2001 23:51:23 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 22 Dec 2001 23:51:23 -0000 Received: (qmail 7749 invoked by alias); 22 Dec 2001 23:51:07 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4547 Received: (qmail 7738 invoked from network); 22 Dec 2001 23:51:06 -0000 Message-ID: <20011222235104.84129.qmail@web12303.mail.yahoo.com> Date: Sat, 22 Dec 2001 18:51:04 -0500 (EST) From: Le Wang Subject: merging consecutive cd commands To: Zsh users list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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