Created
November 14, 2020 21:18
-
-
Save sassdawe/b0fe29c50ab9d2446d30d4af8b363ca6 to your computer and use it in GitHub Desktop.
VSCode Profile for Windows PowerShell
This file contains hidden or 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
if ($PSVersionTable.PSVersion.Major -eq 5) { | |
$env:PSModulePath = ($env:PSModulePath.Split(';') | ? { -not ( $_ -ilike "*Files\Powershell*" ) }) -join ';' | |
Get-Module | ?{ $_.path -ilike '*Files\PowerShell*'} | Remove-Module | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment