From: Bart Schaefer <schaefer@brasslantern.com>
To: Pier Paolo Grassi <pierpaolog@gmail.com>
Cc: Zsh-Users List <zsh-users@zsh.org>
Subject: Re: widget accept-no-history
Date: Thu, 24 Aug 2023 10:47:33 -0700 [thread overview]
Message-ID: <CAH+w=7apR1CSqTgZfGJh2TQkEep-2u-dEdpd-5pSM9WRmx=t2g@mail.gmail.com> (raw)
In-Reply-To: <CAP+y1xAPkaACMYJr93qibBKSmPYW2D3MYShWwA9xdKz=ejd7NQ@mail.gmail.com>
On Thu, Aug 24, 2023 at 7:01 AM Pier Paolo Grassi <pierpaolog@gmail.com> wrote:
>
> I see, I wasn't aware of the zshaddhistory hook
Just one quick addition:
>> zshaddhistory() {
>> [[ -o hist_ignore_space ]] && return 2
>> }
That needs to be
zshaddhistory() {
[[ -o hist_ignore_space ]] && return 2
return 0
}
Otherwise the failed [[ -o ]] test will cause a return of 1, which
will cause the line to be skipped entirely.
prev parent reply other threads:[~2023-08-24 17:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-23 14:40 Pier Paolo Grassi
2023-08-24 3:20 ` Bart Schaefer
2023-08-24 14:01 ` Pier Paolo Grassi
2023-08-24 17:47 ` 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='CAH+w=7apR1CSqTgZfGJh2TQkEep-2u-dEdpd-5pSM9WRmx=t2g@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=pierpaolog@gmail.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).