.zshrc: Don't exit shell on ^D

This is super annoying when you're in a pager like more or less and
you are pressing ^D to go down. When you reach the end of the input
then you send ^D to the shell and it exits!

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2015-06-01 21:18:19 +03:00
parent 362500e8a5
commit a4556ba78a
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

1
.zshrc
View File

@ -7,6 +7,7 @@ unsetopt hist_ignore_space # ignore space prefixed commands
setopt hist_reduce_blanks # trim blanks
setopt inc_append_history # add commands as they are typed, don't wait until shell exit
setopt share_history # share hist between sessions
setopt ignoreeof # don't exit the shell on ^D (EOF)
# emacs bindings
bindkey -e