Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
New project to reuse output of commands
- X-seq: zsh-users 21561
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: New project to reuse output of commands
- Date: Fri, 13 May 2016 18:58:29 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=mmh2YrIWoRHOjNSL/hA0TWVmFhtthK6ImBWhi1hN/Zk=; b=YWgm5jZ0GXj1fJmWwta8WBgg0w+XYQmtWnycbr+j4CFcVPceHIokLyW185OdymMFdL tyG2aW+hcgmlFfgseKZMw4fAHvpo8WiczwbfC/0oSNe9/uBsv8OIaZIbCpwQdHof2f2p YTdNrIKkXz07sG///OrsII8RQs97iak9XeoRYEZtlHVsOv7ivWGu8VlqDOy447Njx+7Q 2zrqfuShjgUiRHJWW+buv79RSpvHQusTuhPMY3azmYtHLfvzz60qXlPRSBB7ZG9AFJ1X woivUd/GKDhQ/kJE6CCchEde/887YduAFxO1YugVbx6j2zOpu7c3Ez/NjCThfzrUJHDc ORPQ==
- 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
Hello,
would anyone participate? The goal is summarized in this video:
https://asciinema.org/a/bezp40yelxl0gkxay3pxkgzag
Putting this into text: reuse parts of output of commands without
mouse. Automatically save output of commands into files. Edit command
line from a curses interface, with access to the saved outputs and
history.
Main mechanism is simple and robust:
ztstart() {
...
exec {ZTRACE_FD}>&1
exec > >(tee -a "$ZTRACE_PATH/$fname")
}
ztstop() {
...
exec >&$ZTRACE_FD && exec {ZTRACE_FD}>&-
}
Github site:
https://github.com/psprint/ztrace
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author