Disable CTRL-D from closing my window with the terminator terminal emulator)
You can also disable eof generally in bash:
set -o ignoreeof
You can use the IGNOREEOF
environment variable in bash. So export IGNOREEOF=42
and you'll have to press Ctrl+D
forty-two times before it actually quits your shell.
POSIX set
has an -o ignoreeof
setting too.