zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: Finding the first history event of the current instance
Date: Sat, 30 May 2015 15:42:36 -0700	[thread overview]
Message-ID: <150530154236.ZM17511@torch.brasslantern.com> (raw)
In-Reply-To: <150529171657.ZM15077@torch.brasslantern.com>

On May 29,  5:16pm, Bart Schaefer wrote:
} Subject: Re: Finding the first history event of the current instance
}
} On May 23,  4:22pm, Christian Neukirchen wrote:
} }
} } How can I list *only* the history lines that I typed into the current
} } session?
} 
} Or there's this patch.  I didn't add an option for listing only the
} NON-local history, but it should be pretty obvious how to do so.

Hmm, except I've just realized that lines read from $HISTFILE are taken
to be local to the current shell when they are loaded at startup, We
would need to filter for the HIST_OLD flag instead of HIST_FOREIGN to
get just those lines entered interactively, and I'm not sure how that
interacts with INC_APPEND_HISTORY -- do the events become "old" as soon
as they are appended to the file?

The options -N (new), -O (old), and -F (foreign) are all currently unused
by "fc" if we wanted to add multiple filterings.

Anyway, sorry, but the patch as it stands does not actually solve the
original problem.


      reply	other threads:[~2015-05-30 22:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-23 14:22 Christian Neukirchen
2015-05-30  0:16 ` Bart Schaefer
2015-05-30 22:42   ` Bart Schaefer [this message]

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=150530154236.ZM17511@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@zsh.org \
    /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).