Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to rebind ctrl-d in .zshrc?
- X-seq: zsh-users 14507
- From: Guido van Steen <gvsteen@xxxxxxxxx>
- To: ZSH User List <zsh-users@xxxxxxxxxx>
- Subject: Re: How to rebind ctrl-d in .zshrc?
- Date: Fri, 16 Oct 2009 08:14:52 -0700 (PDT)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1255706092; bh=COVDV2o3D48Po5b8wsjTtr93kEudNRzxJ1msacVdilY=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=ZnfGlpZ+FzRz4knOEFNdnspKTRV1plV9wdTkM+gCxWHMIf/el4U2espEXIHjb1V3BMKpiHfbGMeWlYjXA0P/TZek7MlvKYYo41E9kK2uEA9VZ2Qn+grt9wAC7ePy4vjKtyQt+FFI6k5tT2GNklR5fPQhe/9CIHdJ8jC8d3LdqWM=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=qexFnrvomEv1asnNx9R9MhBcScLt5wefJ/FJvzYs+VbWmMcMN3R7IlppWj9roE1IABmINl+0Y19/mEAj3yITq3o9II/jHasGWsBvjcnkTLsCI6dRShSZE0XC4hrHjGv0wEGNPmKEWIqGMcGMwLVyxUbpUu/9YlvDwQG6RhEY/Hc=;
- In-reply-to: <200910161848.01950.arvidjaar@xxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Hi Mikael and Andrey,
I got it working by including
"""# disable ctrl-d to logout
setopt IGNORE_EOF
"""
After that I could just rebind ctrl-d:
"bindkey '^D' extended_logout"
Thanks for your help!
Guido
--- On Fri, 16/10/09, Andrey Borzenkov <arvidjaar@xxxxxxxxx> wrote:
[snip]
> ^D on empty line is (by default) intercepted by tty driver
> before zsh
> even sees it.
>
[snip]
--- On Fri, 16/10/09, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
[snip]
> From: Mikael Magnusson <mikachu@xxxxxxxxx>
> Subject: Re: How to rebind ctrl-d in .zshrc?
[snip]
> 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
>
Get your preferred Email name!
Now you can @ymail.com and @rocketmail.com.
http://mail.promotions.yahoo.com/newdomains/aa/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author