help / color / mirror / code / Atom feed
From: "Andreas Kusalananda Kähäri" <andreas.kahari@abc.se>
To: zsh-users@zsh.org
Subject: Repeating last command from *local* history
Date: Thu, 11 Feb 2021 17:37:28 +0100	[thread overview]
Message-ID: <20210211163728.GA8608@box.prefix.duckdns.org> (raw)

I'm using zsh 5.8 on OpenBSD 6.8, and I set the SHARE_HISTORY and
EXTENDED_HISTORY shell options.

I would like to repeat the last command from the command line history
of the current shell session, without accidentally executing a recent
command from some other shell session that I'm using in another

Using "r -L" works, but only if the most recent command in the shared
history is a command from the current shell session.  If it isn't, the
shell responds with "fc: no matching events found".

This *feels* like a bug.


Andreas (Kusalananda) Kähäri
SciLifeLab, NBIS, ICM
Uppsala University, Sweden


             reply	other threads:[~2021-02-11 16:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-11 16:37 Andreas Kusalananda Kähäri [this message]
2021-02-11 20:47 ` Peter Stephenson
2021-02-28 13:25   ` Andreas Kusalananda Kähäri

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210211163728.GA8608@box.prefix.duckdns.org \
    --to=andreas.kahari@abc.se \
    --cc=zsh-users@zsh.org \


* 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


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).