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

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



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