Zsh Mailing List Archive
Messages sorted by:
Re: An example of writing a custom history file?
- X-seq: zsh-users 19537
- From: Rocky Bernstein <rocky.bernstein@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: An example of writing a custom history file?
- Date: Mon, 15 Dec 2014 02:09:39 -0500
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ZoxtlUQGNdugwGKQuN2thfn6JR3nR5VJBTlOpN/7qBQ=; b=LOVcHxuIZ7IA3grhpLs9xM5Eiyn42QDeX3bkCCcMOArFFIV98irjY8fauw1p4oHI1U +jdUnPh/3Hrv5xkT1wTxfvZztLOvqGUvEAg5cMH8ydsRj5B34zyNhTl8UtYS+/4jzqAW B3+BDj8ET9Ev14oGP58db9pIDCsxDZV75qpv/wjR+FhhcxNvNp3xQ/QUd/q+Mb0Zav6j y8B4LUkqe4Hl8jCeTCnLPE0647wSyVXCPT8/BS1GsEusu+jpM7zFxHHsGKMFP+J/MOEV 9W4CKZZCQZS9LqXGwD8/VS5ebLb8GK0WP1ucZvBFx7QUNtKeH/Z+zHTIcUkv4Ow0bWac xujg==
- In-reply-to: <141214185332.ZM24112@torch.brasslantern.com>
- List-help: <mailto:firstname.lastname@example.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:email@example.com>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CANCp2gYQKgxOFb8FOP9KWRku68DVq=j9on1MH=bDmbdwAkewiQ@mail.gmail.com> <141214185332.ZM24112@torch.brasslantern.com>
Thanks for the pointer. That program is too complicated and there is too
much going on for me to understand which parts add to the history file. I'm
guessing it has something to do with the
Here is the 138 line program boiled down to less than 10, the parts I'd
like to focus on:
fc -ap /tmp/example_history 1000
# Read lines and add them to history
while vared -h -p "hey: " sticky
In the above, if I add lines to history file /tmp/example_history, I see
them available in vared. However in the the above doesn't *add* lines to
Additionally what I would like to do in the body of the loop decide whether
or not to add this to the history.
On Sun, Dec 14, 2014 at 9:53 PM, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
> On Dec 14, 8:38pm, Rocky Bernstein wrote:
> } Is there an example somewhere that I can follow for this?
> The only one I can suggest is Functions/Misc/sticky-note which comes
> with zsh. Look at uses of "fc -ap".
Messages sorted by: