Created
February 13, 2014 23:01
-
-
Save shivamy/8985754 to your computer and use it in GitHub Desktop.
Powershell vars and more
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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