From: "İsmail Dönmez" <ismail@donmez.ws>
To: Peter Stephenson <p.stephenson@samsung.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: Hiding command from history
Date: Tue, 3 Feb 2015 16:07:37 +0200 [thread overview]
Message-ID: <CAJ1KOAikV3E2ccM5SaJVrONO3PpALhkcFkH8hL+DZ7v+EV21_g@mail.gmail.com> (raw)
In-Reply-To: <20150203140242.382b2e64@pwslap01u.europe.root.pri>
Hi,
On Tue, Feb 3, 2015 at 4:02 PM, Peter Stephenson
<p.stephenson@samsung.com> wrote:
> On Tue, 3 Feb 2015 15:49:20 +0200
> İsmail Dönmez <ismail@donmez.ws> wrote:
>
>> On Tue, Feb 3, 2015 at 3:06 PM, İsmail Dönmez <ismail@donmez.ws> wrote:
>> > On Tue, Feb 3, 2015 at 2:47 PM, Peter Stephenson
>> > <p.stephenson@samsung.com> wrote:
>> >> and indeed there's no reason I can think of why you couldn't simply
>> >> define
>> >>
>> >> zshaddhistory() { [[ $1 = ${~HISTORY_IGNORE} ]] && return 1; }
>> >
>> > This is quite nice. Thanks!
>>
>> Talked too early it seems. When I add this line to my ~/.zshrc then
>> history file is never updated when I exit the shell. Removing this
>> line fixes the problem. Any ideas why?
>
> Sorry, I was careless with status. Which just goes to show...
>
> See if the following works, which I think it does...
>
> zshaddhistory() { [[ $1 != ${~HISTORY_IGNORE} ]]; }
That works as expected, thanks again!
next prev parent reply other threads:[~2015-02-03 14:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-03 11:29 İsmail Dönmez
2015-02-03 12:13 ` Peter Stephenson
2015-02-03 12:34 ` İsmail Dönmez
2015-02-03 12:47 ` Peter Stephenson
2015-02-03 13:06 ` İsmail Dönmez
2015-02-03 13:49 ` İsmail Dönmez
2015-02-03 14:02 ` Peter Stephenson
2015-02-03 14:07 ` İsmail Dönmez [this message]
2015-02-03 16:39 ` Peter Stephenson
2015-02-03 12:37 ` Peter Stephenson
2015-02-04 17:35 ` 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=CAJ1KOAikV3E2ccM5SaJVrONO3PpALhkcFkH8hL+DZ7v+EV21_g@mail.gmail.com \
--to=ismail@donmez.ws \
--cc=p.stephenson@samsung.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).