zsh-users
 help / color / mirror / code / Atom feed
From: Julien Nicoulaud <julien.nicoulaud@gmail.com>
To: Daniel Shahaf <d.s@daniel.shahaf.name>
Cc: Jay Levitt <jay.levitt@gmail.com>, zsh-users@zsh.org
Subject: Re: I broke my !$
Date: Wed, 5 Oct 2011 17:48:03 +0200	[thread overview]
Message-ID: <CA+mcLN568U6RsoWrQ=CL1RLRh=OoXHcO_SCjdYH=C6134wO-FQ@mail.gmail.com> (raw)
In-Reply-To: <20111005121950.GA20868@daniel3.local>

[-- Attachment #1: Type: text/plain, Size: 541 bytes --]

Same for me, messing with zsh_add_history hook breaks history expansion:

history_strip_passwords() {
  # Strip out -Dgpg.passphrase option value (Maven)
  print -sr "${${1%%$'\n'}//(#b)(gpg.passphrase=)*[:space:]/$match[1]}"
  fc -p
}
add-zsh-hook zshaddhistory history_strip_passwords


With this hook, history exapnsions like "!$" or "!!" always return the whole
history line...

2011/10/5 Daniel Shahaf <d.s@daniel.shahaf.name>

> Jay Levitt wrote on Wed, Oct 05, 2011 at 07:41:29 -0400:
> > What'd I do?
>
> Binary search your zshrc?
>

  reply	other threads:[~2011-10-05 15:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-05 11:41 Jay Levitt
2011-10-05 12:19 ` Daniel Shahaf
2011-10-05 15:48   ` Julien Nicoulaud [this message]
2011-10-05 16:13     ` Bart Schaefer
2011-10-31 16:26       ` Jay Levitt
2011-10-05 16:05 ` 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='CA+mcLN568U6RsoWrQ=CL1RLRh=OoXHcO_SCjdYH=C6134wO-FQ@mail.gmail.com' \
    --to=julien.nicoulaud@gmail.com \
    --cc=d.s@daniel.shahaf.name \
    --cc=jay.levitt@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).