Type this:

shopt -s checkwinsize

😉