title: Adding homebrew to $PATH without sudo privileges
body: <p>I've been trying to install homebrew without admin privileges on my school MacBook (Mojave 10.14.6) for the past 2 weeks. I've seen many things on the internet, saw some scripts, tutorials, but nothing seems to help.</p>
  <p>I used this script (did some tweaking to it like changing to a new repository and setting absolute path)</p>
  <p><code>https://gist.github.com/skyl/36563a5be809e54dc139</code></p>
  <p>the repository I used is</p>
  <p><code>https://github.com/Homebrew/brew</code></p>
  <p>my path to <code>brew</code> is</p>
  <p><code>/Users/as.gurban-zade/Desktop/homebrew/usr/local/bin/brew</code></p>
  <p>I added this to the $PATH using</p>
  <p><code>echo &quot;export PATH=/Users/as.gurban-zade/Desktop/homebrew/usr/local/bin:$PATH&quot; &gt;&gt; ~/.bash_profile &amp;&amp; source ~/.bash_profile</code></p>
  <p>also tried</p>
  <p><code>echo &quot;export PATH=/Users/as.gurban-zade/Desktop/homebrew/usr/local/:$PATH&quot; &gt;&gt; ~/.bash_profile &amp;&amp; source ~/.bash_profile</code></p>
  <p>After everything I did, I still get</p>
  <p><code>-bash: brew: command not found</code></p>
  <p>Updating OS to Catalina is possible if that would help</p>