title: adding cygwin bin directory to powershell path environment variable ... cygwin within powershell
body: <p>Powershell is great for scripting. But when it comes to everyday use, certain things can be a huge PITA!!</p>
  
  <p>so i thought it would be great if i could do something like this in my profile.ps1:</p>
  
  <pre><code>$env:path = "$($env:path);c:\cygwin\bin"
  </code></pre>
  
  <p>to get access to utilities like tar, zip, etc... but this doesn't work. The variable looks right when i do:</p>
  
  <pre><code>PS &gt; $env:path
  </code></pre>
  
  <p>but when i try to do, say,</p>
  
  <pre><code>PS &gt; unzip foo.zip
  </code></pre>
  
  <p>i get a command not found type error. </p>
  
  <p>WTF PowerShell!?</p>
  
  <blockquote>
    <p>edit: great answers! I looked at it with fresh eyes this morning and realized that I just needed to spell 'cygwin' correctly! now I don't have to switch back and forth between two consoles. It should be noted for anyone who uses this tip that your path in powershell is evaluated in order - if you put c:\cygwin\bin at the end of the $env:path variable, it will be searched last, so it won't interfere with existing powershell aliases / cmdlets.</p>
  </blockquote>