Skip to content

Instantly share code, notes, and snippets.

@shivamy
Created February 13, 2014 23:01
Show Gist options
  • Save shivamy/8985754 to your computer and use it in GitHub Desktop.
Save shivamy/8985754 to your computer and use it in GitHub Desktop.
Powershell vars and more
# Start powershell and in the PS window
# File $HOME\USER_profile.ps1
$env:Path += ";C:\cygwin64\bin;C:\cygwin64\sbin"
> Set-ExecutionPolicy RemoteSigned # Set policy so that you can execute local scripts!
> . .\A_USER_profile.ps1 # Source a profile file
> $v = $env:path; $v.split(";") # Print the path one per line
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0\
C:\cygwin64\bin
C:\cygwin64\sbin
> gv # Get-Variables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment