title: Launch Pycharm from command line (terminal)
body: <p>I want to try out PyCharm for sage mathematics development.  Normally I run eclipse to do sage development, but now I want to try it with PyCharm.</p>
  
  <p>To launch eclipse with sage environment variables, in command line I normally do the following:</p>
  
  <pre><code>sage -sh
  cd /path/to/eclipse
  ./eclipse
  </code></pre>
  
  <p>The first line loads the sage environment variables, the remainder launches eclipse.  How can I do the same thing for pyCharm?  (note I am using a Mac and Ubuntu for sage development; the commands above are agnostic to both OSes)</p>
  
  <ol>
  <li><a href="https://stackoverflow.com/questions/19715724/pycharm-environment-different-than-command-line">Link 1</a> is close to the solution I am looking for, however I cannot find a pyCharm.sh anywhere.</li>
  <li><a href="http://www.jetbrains.com/pycharm/webhelp/working-with-pycharm-features-from-command-line.html" rel="noreferrer">Link 2</a>: Jetbrains does not give clear instructions either.</li>
  </ol>