-bash: vim: command not found
<p>I have been trying to install something in my bash_profile, which looked like this:</p>

<pre><code># Set architecture flags
export ARCHFLAGS="-arch x86_64"
# Ensure user-installed binaries take precedence
export PATH=/usr/local/bin:$PATH
# Load .bashrc if it exists
test -f ~/.bashrc &amp;&amp; source ~/.bashrc
</code></pre>

<p>I was trying to add the Path to my pg_config file: /Applications/Postgres.app/Contents/Versions/9.6/bin</p>

<p>So my bash_profile looked like:</p>

<pre><code># Set architecture flags
export ARCHFLAGS="-arch x86_64"
# Ensure user-installed binaries take precedence
export PATH=/usr/local/bin:/Applications/Postgres.app/Contents/Versions/9.6/bin:$PATH
# Load .bashrc if it exists
test -f ~/.bashrc &amp;&amp; source ~/.bashrc
</code></pre>

<p>When I tried to source the file i got: </p>

<blockquote>
  <p>-bash: /usr/local/bin:/Applications/Postgres.app/Contents/Versions/9.6/bin:: No such file or directory</p>
</blockquote>

<p>When I try to open the bash_profile I now get:</p>

<blockquote>
  <p>-bash: vim: command not found</p>
</blockquote>

<p>What have I done wrong?</p>

<p><strong>Additional info</strong></p>

<p>I have installed Python, PGAdmin4 and Django via Homebrew
I have downloaded Postgress.app also and was trying to install psycopg2, when it told me I had no pg_config. So I was trying to add the path to my bash_profile. Which I think is the right thing to do</p>