messed up .bash_profile while configuring PostgreSQL
The newlines before the 'source' statements are missing, the 'source' statements should be on a new line. 

Also, there are quite a number of duplicate and conflicting lines in your config (the psql aliases).