syntax error: unexpected end of file .bash_profile

Solution 1:

There needs to be a semicolon or line break before the fi:

if [ -f ~/.bashrc ]; then   . ~/.bashrc; fi