sourcing .bash_profile from .bashrc breaks macvim shell
According to https://stackoverflow.com/questions/11676026/macvim-shell-sh-only-displays-character-codes-escape-sequences the initial ?1034h characters are the colour codes I've set up in my .bashrc. 

When calling echo $TERM from macvim the result is dumb. It looks like the terminal is unable to interpret certain escape sequences. 

Details on how to adjust the .bashrc to accommodate (taken from  https://stackoverflow.com/a/11676355/783836):


  If you would like to use a color prompt on the command line, but not
  in MacVim you can fix this in ~/.bashrc by setting PS1 differently
  when inside vim (from [here][1]) 

if [ $VIM ]; then
        export PS1='\h:\w\$ '
fi