fr8tra1n / powershell

Powershell profile

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Concise powershell profile

Just to humor the average command line nerd :)

External modules:

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Import-Module Pscx -arg @{
	TextEditor = 'C:\Program Files\Sublime Text 3\sublime_text.exe'
}
Import-Module 'C:\Program Files (x86)\Jump-Location\Jump.Location.psd1'
Import-Module PSReadLine
Import-Module –Name OneGet

#Set environment variables for Visual Studio Command Prompt
pushd 'c:\Program Files (x86)\Microsoft Visual Studio 12.0\VC'
cmd /c "vcvarsall.bat&set" |
foreach {
  if ($_ -match "=") {
    $v = $_.split("="); set-item -force -path "ENV:\$($v[0])"  -value "$($v[1])"
  }
}
popd
write-host "Visual Studio 2012 Command Prompt variables set." -ForegroundColor Yellow

#ps version
write-host "PowerShell $($PSVersionTable.PSVersion.ToString())" -ForegroundColor Yellow

About

Powershell profile