title: Command-line alias for Visual Studio Code on OS X with CSH?
body: <p>The <a href="https://code.visualstudio.com" rel="noreferrer">VS Code</a> editor is nice, and I'm looking forward to using it to learn a bit more about javascript and node.js. The <a href="https://code.visualstudio.com/Docs/setup" rel="noreferrer">installation instructions</a> describe the setup for <code>bash</code>-like shells, but I am a savage and would like to use it with <code>csh</code>. I can probably hack something together, but is there an obvious translation of </p>
  
  <pre><code>code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $* }
  </code></pre>
  
  <p>into a <code>csh</code> <code>alias</code>?</p>
  
  <p>I think this sort of works:</p>
  
  <pre><code>alias code "setenv VSCODE_CWD ${PWD} &amp;&amp; open -n -b "com.microsoft.VSCode" --args $*"
  </code></pre>
  
  <p>but I think I really want a way to make <code>VSCODE_CWD</code> "local" to the alias, as in the bash version.</p>