Robert Saunders


710 Experience
7 Lessons Completed
0 Questions Solved


Posted in Setup MacOS 10.12 Sierra Discussion

I ran the command:

echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
source ~/.bash_profile

And now everytime I open a terminal window I am getting the below at the top of my window:

-bash: /Users/robertsaunders/.bash_profile: line 2: syntax error near unexpected token `source'
-bash: /Users/robertsaunders/.bash_profile: line 2: `if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi source /Users/robertsaunders/.bash_profile'

Please help!

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2021 GoRails, LLC. All rights reserved.