title: Could not write to .bash_profile when installing Rust on macOS Sierra
body: <p>I am trying to install Rust by running the following:</p>
  
  <pre class="lang-none prettyprint-override"><code>sudo curl https://sh.rustup.rs -sSf | sh
  </code></pre>
  
  <p>I keep getting this following error:</p>
  
  <pre class="lang-none prettyprint-override"><code>could not write rcfile file: '/Users/pro/.bash_profile'
  info: caused by: Permission denied (os error 13
  </code></pre>