Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
using history in a command processor
- X-seq: zsh-users 13234
- From: "Rocky Bernstein" <rocky.bernstein@xxxxxxxxx>
- To: "zsh users mailing list" <zsh-users@xxxxxxxxxx>
- Subject: using history in a command processor
- Date: Wed, 17 Sep 2008 22:59:44 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=4lBaHCNn1LC7fnOY8NsBGeI5GX/3LDu8bl5JxoWDqMc=; b=reCaa/ocvbV6WN94hvhhBPc1URW2YclDZFf9BDq5Ljg1sfIyg+Nu5XS7c38OVJma69 VlGwxtfZtX78d6KbAkYa+4rHn2RTV/tcVfAGylH/jzp3tEejLJIWQ7H55YtdYNu430e0 c2mwaMntZY+J5y4B2lXpdV1AwlFoGkm0JOsQQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=GdQsLks7QXKtoBSLHy/H/dFKOZFssnCbccuHXyi7I4dCbuhmxNKdzAIEtBXwG4JC0k dAt6mUht21JzmamKveqM8fJb9HHSZvAo5N5XltfJkOSQn8EQQblH7DvQyQwZj3BfNtRr 54TllXNhSu/IhOrhxN4mH6HnOHp+6tsDhzWdc=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
I'm writing basically a command processor and want to use the zsh history mechanism for that. I see that using fc I can read a history file and write it, but how do I put those commands in the history that I want? Right now I'm using vared when in an interactive terminal and read when not. But after reading I do a check on the command. The input might get changed a little and that's what I want to push onto the history.
Also, is there a way to delete an entry?
In other words, what I'm looking for is an equivalent to what in bash is "history -s"
Thanks.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author