Setting PS1 without checking to see if $TERM was set meant trying to set a terminal prompt in incorrect places (eg via scp) and throwing an error. Also I was sourcing my fzf config without checking whether or not it exists. So it was spitting out errors on hosts that didnt have fzf installed.