Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to rebind ctrl-d in .zshrc?
- X-seq: zsh-users 14506
- From: Andrey Borzenkov <arvidjaar@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: How to rebind ctrl-d in .zshrc?
- Date: Fri, 16 Oct 2009 18:47:54 +0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=X13t8QgwTZWNa7HtZFjoqqNMEWEPEhg/SgnWOG8yu7o=; b=F+remzFOQsjy3IU0QW0BGu0P44rQLrmONxuKCOGi2VA6+7N78OZnDxOZ5izGdHN6NE qpQ0X/xENTSGjHJ1DhwX1p0gvn8u1Aaeh/mPAnH19gbFcUz/vPY54Ts5d0OYMB5EzI9h W5M4zivvaeHTdRmMQhd9/5jqacZY+S4bHAtE8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; b=ZWA/3hndMwTFqM60Xe+9YyNaNIIOCjE7OpYo6jn68/LKGEfpfMfYPq8mE0Z7pbJvwC vFyiDCSYcHKhaHI8Raf1jVut1sWv795CQilexI8ck5+b2Tmkr8BoJQPO0XgjDcdf1S4T TbZb9YjYAlx+jWnmBC3d6LdgaOJUYpiJcDjLo=
- In-reply-to: <237967ef0910160736i31f08ce9nca09456eac292f43@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <237967ef0910151516n42ec231obdd48da9d63087e6@xxxxxxxxxxxxxx> <873643.12998.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <237967ef0910160736i31f08ce9nca09456eac292f43@xxxxxxxxxxxxxx>
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