title: Make Atom CLI wait for file to be closed
body: <p>I used to have the following simple alias:</p>
  
  <pre><code>alias bashedit='${EDITOR} ~/.bash_profile; source ~/.bash_profile'
  </code></pre>
  
  <p>It opens <code>.bash_profile</code> in my editor of choice and automatically sources it after I made my changes. However, since I switched to Atom (i.e. <code>EDITOR='atom'</code>), I recognized that the <code>atom</code> CLI is non-blocking. That is, it immediately returns and executes <code>source</code> instead of waiting for the file to be closed.</p>
  
  <p>Is there a way to make <code>atom</code> wait?</p>