Reputation: 145
Hoping someone can help me figure out the cause of this error:
-bash: /Users/me/.bash_profile: line 1: syntax error near unexpected token `source'
-bash: /Users/me/.bash_profile: line 1: `if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi source /Users/me/.bash_profile'
Here is the line in my .bash_profile
:
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi source /Users/me/.bash_profile
Upvotes: 1
Views: 1565
Reputation: 77
Check your .bash_profile
it should look like this
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
Should end after the fi.
The source /Users/me/.bash_profile
is a command that you should run after editing the bash profile. Just erase this after the fi and everything just run fine.
Upvotes: 1
Reputation: 8754
You missed a semicolon after fi
:
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi; source /Users/me/.bash_profile
Upvotes: 3