title: Appending to bash_profile (the specifics)
body: <p>Apparently if I want to initialize rbenv automatically (in order to install gems), I need to append </p>
  
  <pre><code>eval "$(rbenv init -)"
  </code></pre>
  
  <p>to my bash_profile. However, I have no idea what I am doing with Unix and when I open up bash_profile in TextEditor I get this:</p>
  
  <pre><code>export PATH="/Users/student/anaconda/bin:$PATH"
  export PATH="$HOME/.rbenv/bin:$PATH"
  </code></pre>
  
  <p>I have tried to put it in multiple places, and it doesn't work. Where do I put it?</p>
  
  <p>P.S. I know that if I knew a little more, I could derive the answer from another post, but I know nothing about this and cannot distinguish one thing in the PATH from another. (Please don't mark as duplicate).</p>
  
  <p>UPDATE: I tried the suggestion by Robert I., so that now the profile reads:</p>
  
  <p>I tried that so now the profile reads:                                                                                           </p>
  
  <pre><code># Setting PATH for Python 3.5
  # The original version is saved in .bash_profile.pysave
  PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}"
  export PATH
  
  # added by Anaconda3 4.2.0 installer
  export PATH="/Users/student/anaconda/bin:$PATH"
  export PATH="$HOME/.rbenv/bin:$PATH"
  
  eval "$(rbenv init -)"                                                                                      
  </code></pre>
  
  <p>I am trying to install jekyll and bundler, and I still get the same Gem:FilePermissionsError. Did I do it wrong, or could there be some other error?</p>