Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zshaddhistory confusion
- X-seq: zsh-users 16459
- From: Jay Levitt <jay.levitt@xxxxxxxxx>
- To: "Benjamin R. Haskell" <zsh@xxxxxxxxxx>
- Subject: Re: zshaddhistory confusion
- Date: Sat, 1 Oct 2011 16:44:16 -0400
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=5uAZ0nvBMPIqnN4rTL6kl8mfNE9gYl+gUTxS6fbYISs=; b=t4Er4psRXo4WFupLg9EYEcRZP/75+RcZTOuWk3Dp2jgEFKIGYsZnd/W5peoNJaZvVO Op5ovV0q9HTDh2XmpnMa1o65wEQjtD46PeCi0dQantAC/4UBu6ZPkoimOgTIKCZHRmhD NA9MfVlWncLMRNACXyZ/nv+VFUdyujsv8evuM=
- In-reply-to: <alpine.LNX.2.01.1109261658500.10525@hp.internal>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CANSg5mq_7ntWK6XmAih9H0Lx1qUh0fcKARHJhSXwp-4zREXJjA@mail.gmail.com> <alpine.LNX.2.01.1109261658500.10525@hp.internal>
Benjamin Haskell wrote:
> zshaddhistory () {
> print -sr -- "${1%%$'\n'}"
> fc -p ~/.zsh_history_detail
> print -sr -- "${1%%$'\n'} ### ${PWD} $(date '+%Y-%m-%d %R')"
> return 1
> }
Thanks for the help! This fixes the double-write to
.zsh_history_detail, but is still writing weird stuff to .zsh_history:
: 1317501595:0;echo autojump.zsh
: 1317501605:0;git st
: 1317501607:0;echo git st
: 1317501691:0;cd
: 1317501694:0;tail .zsh_history
Ideas?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author