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:
> On 2007-12-20 Mikael Magnusson wrote:
>
> > On 20/12/2007, Micah Elliott <mde@xxxxxxxxxxxxxxxx> wrote:
> > >     $ #ls foo
> > >     zsh: bad pattern: #ls
> > >
> > > Is there a way to make this work in zsh the way it does in bash?
> >
> > setopt interactivecomments
>
> Great, that works.  Thanks!
>
> Is there some way I could have discovered that?  I don't see it
> in zshall(1).  I do see that it (and a few others) are set now by
> running 'setopt', but it would be nice to know what all the
> available options are (which aren't in the manpage).

You also have to know that the manpage lists options with _ randomly
interspersed in the names. In this case interactive_comments. Or you
could just search for "comments". The entry for vi-pound-insert also
mentions it (this is the keybind you used).

-- 
Mikael Magnusson



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