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

Re: How to rebind ctrl-d in .zshrc?



On Friday 16 of October 2009 18:36:28 Mikael Magnusson wrote:
> 2009/10/16 Guido van Steen <gvsteen@xxxxxxxxx>:
> > Hi Mikael,
> >
> > Exactly what I was looking for! Thanks a lot!
> >
> > I have another kind of related question:
> >
> > Is is possible to rebind/extend ctrl-d in .zshrc or somewhere
> > else too??
> 
> You can rebind ctrl-d, but looks like it only works when not on an
> empty input line.
> bindkey '^D' whatever
> If you want you can use
> stty eof '^E'
> to make another combination send the eof signal. or
> stty eof ''
> to disable it.
> 
> It's not entirely clear to me why it behaves this way.
> 

^D on empty line is (by default) intercepted by tty driver before zsh 
even sees it.

Attachment: signature.asc
Description: This is a digitally signed message part.



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