Skip to content

Instantly share code, notes, and snippets.

@ploegert
Created September 12, 2016 16:28
Show Gist options
  • Save ploegert/bb893f37823b3b8d95cb483500c4cbc6 to your computer and use it in GitHub Desktop.
Save ploegert/bb893f37823b3b8d95cb483500c4cbc6 to your computer and use it in GitHub Desktop.
Setup Powershell Profile
cd $env:USERPROFILE\Documents
md WindowsPowerShell -ErrorAction SilentlyContinue
cd WindowsPowerShell
if (-not (test-path ".\Microsoft.PowerShell_profile.ps1"))
{ new-item -ItemType File -Name Microsoft.PowerShell_profile.ps1 -ErrorAction SilentlyContinue }
#powershell_ise.exe .\Microsoft.PowerShell_profile.ps1
start "C:\Program Files (x86)\Microsoft VS Code\Code.exe" ".\Microsoft.PowerShell_profile.ps1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment