Include Cygwin in your PowerShell Environment (Vista)
Want to include your Cygwin environment in your Windows PowerShell on Vista?
Step 1.
Open PowerShell. Run:
set-executionpolicy RemoteSigned
Step 2.
Create a directory in your user profile:
mkdir c:\users\(profile)\Documents\WindowsPowerShell
Step 3.
Navigate to the above created directory, and create a new file called “Microsoft.Powershell_profile.ps1″
Step 4.
Edit the file in Notepad:
$env:path=$env:path+";C:\cygwin\bin"
Step 5.
Include any other paths if necessary, or include other scripts and add-ons as needed. Relaunch PowerShell and varify the changes. Trying running
c:\cygwin\cygwin.bat
or more simply
bash
No comments yet.