psql: command not found Mac
<p>I installed PostgreSQL via the graphical install on <a href="http://www.postgresql.org/download/macosx/" rel="noreferrer">http://www.postgresql.org/download/macosx/</a></p>

<p>I see it in my applications and also have the psql terminal in my applications. I need psql to work in the regular terminal for another bash script I'm running for an app.</p>

<p>For some reason, when I run</p>

<pre><code>psql
</code></pre>

<p>in the Mac terminal, my output is </p>

<pre><code>-bash: psql: command not found
</code></pre>

<p>I ran the following in the terminal:</p>

<pre><code>locate psql | grep /bin
</code></pre>

<p>and the output was</p>

<pre><code>/Library/PostgreSQL/9.5/bin/psql
</code></pre>

<p>I then edited my ~/.bash_profile and added it to the path like so:</p>

<pre><code>export PATH = /Library/PostgreSQL/9.5/bin/psql:$PATH
</code></pre>

<p>The only other thing in ~/.bash_profile is SDK man and it's at the bottom of the script as it says it should be. I've tried setting the bath to just the /Library/PostgreSQL/9.5/bin/ as well. I've restarted my terminal also.</p>

<p>How can I get psql to work? </p>

<p><strong>EDIT</strong>
After adding to .bashrc, this output is returned when I open terminal</p>

<pre><code>-bash: export: `/Library/PostgreSQL/9.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin': not a valid identifier
</code></pre>