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

Re: command-cancellation with #



On 20/12/2007, Micah Elliott <mde@xxxxxxxxxxxxxxxx> wrote:
> I'm evaluating the possibility of a move to zsh from bash for
> everyday work.  First question...
>
> I operate in vi-mode.  I frequently use this sequence to
> interrupt and save a command I'm in the middle of typing: <Esc>#
>
> This simply puts the incomplete command into my history for later
> recall.  When I do this in zsh I get this error:
>
>     $ #ls foo
>     zsh: bad pattern: #ls
>
> Is there a way to make this work in zsh the way it does in bash?

setopt interactivecomments

-- 
Mikael Magnusson



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