From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3662 invoked from network); 10 Apr 2001 04:43:40 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 10 Apr 2001 04:43:40 -0000 Received: (qmail 25304 invoked by alias); 10 Apr 2001 04:43:26 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3813 Received: (qmail 25293 invoked from network); 10 Apr 2001 04:43:26 -0000 Message-ID: <20010410044321.3457.qmail@web10408.mail.yahoo.com> Date: Mon, 9 Apr 2001 21:43:21 -0700 (PDT) From: Felix Rosencrantz Subject: Re: Fix up the history upon "fg" To: zsh-workers MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii That's a pretty useful function. I guess I would sort of also like the inverse function, you type a command, and if the same command line is already running (including same CWD) the shell does a fg rather than run the command. This sort of command would be useful for a wrapper around something like vim or other commands that don't like you having multiple instances running for the same file (or other resource.) Also, it wouldn't be too hard to make getjobs() also print an appropriate "cd" to the command if the CWD is not the same. I guess I would like a way to add attributes to history. I tend to use pushd/popd and ~1,~2 etc. But when I look back at history it can be impossible to tell what directory I was in at the time the command was run. It would be nice if zsh could store the CWD information along with the history. Of course, this could require a lot more memory usage. It would be useful if this information was kept like the time data, where it is printed only when wanted. -FR. __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/