prompt.sh now checks terminal size before PS1 mode is set