zsh-users
 help / color / mirror / code / Atom feed
From: Felix Rosencrantz <f_rosencrantz@yahoo.com>
To: zsh-workers <zsh-users@sunsite.auc.dk>
Subject: Re: Fix up the history upon "fg"
Date: Mon, 9 Apr 2001 21:43:21 -0700 (PDT)	[thread overview]
Message-ID: <20010410044321.3457.qmail@web10408.mail.yahoo.com> (raw)

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/


             reply	other threads:[~2001-04-10  4:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-10  4:43 Felix Rosencrantz [this message]
2001-04-10  7:48 ` Bart Schaefer
  -- strict thread matches above, loose matches on Subject: below --
2001-04-04 22:41 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=20010410044321.3457.qmail@web10408.mail.yahoo.com \
    --to=f_rosencrantz@yahoo.com \
    --cc=zsh-users@sunsite.auc.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).