Add support for dumb terminals in bash and zsh.