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

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



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.

-- 
Mikael Magnusson



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