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

Re: default pipe



On Mon, Jul 25, 2005 at 17:28:14 +0000, Bart Schaefer wrote:

> } $ ls | <enter>
> 
> This is syntactically incomplete, so zsh is going to print the PS2
> prompt and wait for you to enter another command.  In most cases I
> think this is what you'd want.

Actually I always finish pipes in a line, so it's never what I want;]

> The only way to subvert this is to hack the accept-line ZLE widget:
[...]
> zle -N accept-line accept-pipe-as-terminator

Works perfect:) Thanks!

-- 
GoTaR <priv0.onet.pl->gotar>        http://vfmg.sourceforge.net/
                                    http://tccs.sourceforge.net/



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