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

Re: less with subprocess



On Mon, Sep 27, 2021 at 5:41 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> alias -g LF='| () { cat >$1 &! less $1 ; kill $! } =(:)'

On additional thought ... it's not really saving very much to make
this a global alias.  An actual function

LF () { () { cat >$1 &! less $1 ; kill $! } =(:) }

is only two more characters to pipe into, and can also be redirected into.




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