Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to rebind ctrl-d in .zshrc?
- X-seq: zsh-users 14505
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Guido van Steen <gvsteen@xxxxxxxxx>
- Subject: Re: How to rebind ctrl-d in .zshrc?
- Date: Fri, 16 Oct 2009 16:36:28 +0200
- Cc: ZSH User List <zsh-users@xxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=7W9AMsyrgDKgDAONrBOyAsnYbSQdLBzee3SpsJebPvk=; b=KZEW9dSeK1Rnnd6PQ3BW/qrET27dFDD2OfbuL7BFXn1iV1dU7y/nXWBmVkputE2L0c PAY4jZtLrugIu9TG48HaDpKhpZLsUfbhi3dpU1oLUdPg0JXZGYvjfjJmDTkiycVOA4Ky HG8oqAyEoymZahH+8gOT9OTkVjKrSbKwSsk4o=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=qo3g8Vs6OdMdP7+5bawtR7dVpkjVe7psxitwp17SvDqTQxXjWnA072sDq33AFGyi7w GXgu4bsah5rvvbcEwd7QzHFPgrZVF22HclLZ56CTbPaRzaOEwQ5/duknHiMU3Kj3alHK jYL4GTYJ3JYwYBg8VdmNRcii7ay1aa61ktC+o=
- In-reply-to: <873643.12998.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <237967ef0910151516n42ec231obdd48da9d63087e6@xxxxxxxxxxxxxx> <873643.12998.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
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