How do I keep terminal line from overwriting itself?
For some reason the terminal size is mis-reporting. It should change when you resize the terminal.
Try this in your .bashrc command file:
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
I found the answer here. The answer with the most votes solved it for me.
To sum it up I had to wrap my formats in \[ \]
export PS1='\[\033[1;32m\]$(whoami)@$(hostname): \[\033[0;37m\]$(pwd)$ \[\033[0m\]'