Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: feature request



Yefim Vedernikoff wrote on Thu, 16 Jan 2020 22:10 +00:00:
> What would it take to add a new environment variable like $OUTPUT to 
> keep
> track of the last output? I like the $(!!) solution from
> https://stackoverflow.com/questions/24283097/reusing-output-from-last-command-in-bash
> but I don't like that it redoes the work (especially if the work is
> intensive).

Under tmux it might be solvable using «tmux list-panes -F
'#{history_size}'» in preexec() and «tmux capture-pane» afterwards.



Messages sorted by: Reverse Date, Date, Thread, Author